[backcolor.html]
  type: testharness
  [[["backcolor","#00FFFF"\]\] "foo[\]bar" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<p>[foo</p> <p>bar\]</p>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span>[foo</span> <span>bar\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span>[foo</span> <span>bar\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span>[foo</span> <span>bar\]</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<p>[foo</p><p> <span>bar</span> </p><p>baz\]</p>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<p>[foo</p><p> <span>bar</span> </p><p>baz\]</p>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<p>[foo</p><p> <span>bar</span> </p><p>baz\]</p>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<p>[foo<p><br><p>bar\]" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<b>foo[\]bar</b>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<i>foo[\]bar</i>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<span>foo</span>{}<span>bar</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<span>foo[</span><span>\]bar</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo[bar\]baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "foo[bar\]baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo[bar<b>baz\]qoz</b>quz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "foo[bar<b>baz\]qoz</b>quz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo[bar<i>baz\]qoz</i>quz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "foo[bar<i>baz\]qoz</i>quz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "{<p><p> <p>foo</p>}" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "{<p><p> <p>foo</p>}" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<table><tbody><tr><td>foo<td>b[a\]r<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<table><tbody><tr><td>foo<td>b[a\]r<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<p style=\\"background-color: rgb(0, 255, 255)\\">foo[bar\]baz</p>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<p style=\\"background-color: rgb(0, 255, 255)\\">foo[bar\]baz</p>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<p style=\\"background-color: #00ffff\\">foo[bar\]baz</p>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<p style=\\"background-color: #00ffff\\">foo[bar\]baz</p>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<p style=\\"background-color: aqua\\">foo[bar\]baz</p>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<p style=\\"background-color: aqua\\">foo[bar\]baz</p>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "{<p style=\\"background-color: aqua\\">foo</p><p>bar</p>}" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "{<p style=\\"background-color: aqua\\">foo</p><p>bar</p>}" queryCommandIndeterm("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "{<p style=\\"background-color: aqua\\">foo</p><p>bar</p>}" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "{<p style=\\"background-color: aqua\\">foo</p><p>bar</p>}" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "{<p style=\\"background-color: aqua\\">foo</p><p>bar</p>}" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "{<p style=\\"background-color: aqua\\">foo</p><p>bar</p>}" queryCommandIndeterm("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "{<p style=\\"background-color: aqua\\">foo</p><p>bar</p>}" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "{<p style=\\"background-color: aqua\\">foo</p><p>bar</p>}" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=\\"background-color: aqua\\">foo<span style=\\"background-color: tan\\">[bar\]</span>baz</span>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span style=\\"background-color: aqua\\">foo<span style=\\"background-color: tan\\">[bar\]</span>baz</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=\\"background-color: #00ffff\\">foo<span style=\\"background-color: tan\\">[bar\]</span>baz</span>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span style=\\"background-color: #00ffff\\">foo<span style=\\"background-color: tan\\">[bar\]</span>baz</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=\\"background-color: #0ff\\">foo<span style=\\"background-color: tan\\">[bar\]</span>baz</span>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span style=\\"background-color: #0ff\\">foo<span style=\\"background-color: tan\\">[bar\]</span>baz</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=\\"background-color: rgb(0, 255, 255)\\">foo<span style=\\"background-color: tan\\">[bar\]</span>baz</span>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span style=\\"background-color: rgb(0, 255, 255)\\">foo<span style=\\"background-color: tan\\">[bar\]</span>baz</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<span style=\\"background-color: aqua\\">foo<span style=\\"background-color: tan\\">b[ar\]</span>baz</span>" compare innerHTML]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<span style=\\"background-color: aqua\\">foo<span style=\\"background-color: tan\\">b[ar\]</span>baz</span>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<span style=\\"background-color: aqua\\">foo<span style=\\"background-color: tan\\">b[ar\]</span>baz</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<p style=\\"background-color: aqua\\">foo<span style=\\"background-color: tan\\">b[ar\]</span>baz</p>" compare innerHTML]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<p style=\\"background-color: aqua\\">foo<span style=\\"background-color: tan\\">b[ar\]</span>baz</p>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "<p style=\\"background-color: aqua\\">foo<span style=\\"background-color: tan\\">b[ar\]</span>baz</p>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<div style=\\"background-color: aqua\\"><p style=\\"background-color: tan\\">b[ar\]</p></div>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<div style=\\"background-color: aqua\\"><p style=\\"background-color: tan\\">b[ar\]</p></div>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<div style=\\"background-color: aqua\\"><p style=\\"background-color: tan\\">b[ar\]</p></div>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<div style=\\"background-color: aqua\\"><p style=\\"background-color: tan\\">b[ar\]</p></div>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=\\"display: block; background-color: aqua\\"><span style=\\"display: block; background-color: tan\\">b[ar\]</span></span>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=\\"display: block; background-color: aqua\\"><span style=\\"display: block; background-color: tan\\">b[ar\]</span></span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span style=\\"display: block; background-color: aqua\\"><span style=\\"display: block; background-color: tan\\">b[ar\]</span></span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "fo[o<span style=background-color:tan>b\]ar</span>baz" queryCommandIndeterm("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "fo[o<span style=background-color:tan>b\]ar</span>baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "fo[o<span style=background-color:tan>b\]ar</span>baz" queryCommandIndeterm("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "fo[o<span style=background-color:tan>b\]ar</span>baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>ba[r</span>b\]az" queryCommandIndeterm("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>ba[r</span>b\]az" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>ba[r</span>b\]az" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>ba[r</span>b\]az" queryCommandIndeterm("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>ba[r</span>b\]az" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "fo[o<span style=background-color:tan>bar</span>b\]az" queryCommandIndeterm("backcolor") before]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "fo[o<span style=background-color:tan>bar</span>b\]az" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo[<span style=background-color:tan>b\]ar</span>baz" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo[<span style=background-color:tan>b\]ar</span>baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "foo[<span style=background-color:tan>b\]ar</span>baz" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "foo[<span style=background-color:tan>b\]ar</span>baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>ba[r</span>\]baz" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>ba[r</span>\]baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>ba[r</span>\]baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "foo[<span style=background-color:tan>bar</span>\]baz" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "foo[<span style=background-color:tan>bar</span>\]baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>[bar\]</span>baz" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "foo<span style=background-color:tan>[bar\]</span>baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "foo{<span style=background-color:tan>bar</span>}baz" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["backcolor","#00FFFF"\]\] "foo{<span style=background-color:tan>bar</span>}baz" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o</span><span style=background-color:yellow>b\]ar</span>" queryCommandIndeterm("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o</span><span style=background-color:yellow>b\]ar</span>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o</span><span style=background-color:yellow>b\]ar</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o</span><span style=background-color:yellow>b\]ar</span>" queryCommandIndeterm("backcolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o</span><span style=background-color:yellow>b\]ar</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o</span><span style=background-color:tan>b\]ar</span>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o</span><span style=background-color:tan>b\]ar</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o</span><span style=background-color:tan>b\]ar</span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o<span style=background-color:transparent>b\]ar</span></span>" queryCommandValue("backcolor") before]
    expected: FAIL

  [[["stylewithcss","true"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o<span style=background-color:transparent>b\]ar</span></span>" queryCommandValue("backcolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["backcolor","#00FFFF"\]\] "<span style=background-color:tan>fo[o<span style=background-color:transparent>b\]ar</span></span>" queryCommandValue("backcolor") after]
    expected: FAIL

