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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  [[["stylewithcss","false"\],["hilitecolor","#00FFFF"\]\] "<font size=6>[foo\]</font>" queryCommandValue("hilitecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["hilitecolor","#00FFFF"\]\] "<span style=font-size:xx-large>[foo\]</span>" queryCommandValue("hilitecolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["hilitecolor","#00FFFF"\]\] "<font size=6>foo[bar\]baz</font>" queryCommandValue("hilitecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["hilitecolor","#00FFFF"\]\] "<font size=6>foo[bar\]baz</font>" queryCommandValue("hilitecolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["hilitecolor","#00FFFF"\]\] "<span style=font-size:xx-large>foo[bar\]baz</span>" queryCommandValue("hilitecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["hilitecolor","#00FFFF"\]\] "<span style=font-size:xx-large>foo[bar\]baz</span>" queryCommandValue("hilitecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["hilitecolor","#00FFFF"\]\] "[foo<font size=6>bar</font>baz\]" queryCommandValue("hilitecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["hilitecolor","#00FFFF"\]\] "[foo<span style=font-size:xx-large>bar</span>baz\]" queryCommandValue("hilitecolor") after]
    expected: FAIL

