[forecolor.html]
  type: testharness
  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<p>[foo</p> <p>bar\]</p>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["forecolor","#0000FF"\]\] "<span>[foo</span> <span>bar\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span>[foo</span> <span>bar\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["forecolor","#0000FF"\]\] "<p>[foo</p><p> <span>bar</span> </p><p>baz\]</p>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<p>[foo</p><p> <span>bar</span> </p><p>baz\]</p>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<p>[foo<p><br><p>bar\]" compare innerHTML]
    expected: FAIL

  [[["forecolor","#0000FF"\]\] "<span>foo[</span><span>\]bar</span>" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo[bar<b>baz\]qoz</b>quz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo[bar<i>baz\]qoz</i>quz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "{<p><p> <p>foo</p>}" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","blue"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","f"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","f"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["forecolor","#f"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","#f"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["forecolor","00f"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["forecolor","00f"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","00f"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","00f"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#00f"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["forecolor","0000ff"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["forecolor","0000ff"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","0000ff"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","000000fff"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","000000fff"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["forecolor","#000000fff"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","#000000fff"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgb(0, 0, 255)"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgb(0, 0, 255)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgb(0%, 0%, 100%)"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgb(0%, 0%, 100%)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgb( 0 ,0 ,255)"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgb( 0 ,0 ,255)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","true"\],["forecolor","rgba(0, 0, 255, 0.0)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgba(0, 0, 255, 0.0)"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgba(0, 0, 255, 0.0)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgb(15, -10, 375)"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgb(15, -10, 375)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["forecolor","rgba(0, 0, 0, 1)"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","rgba(0, 0, 0, 1)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgba(255, 255, 255, 1)"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgba(255, 255, 255, 1)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgba(0, 0, 255, 0.5)"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","rgba(0, 0, 255, 0.5)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","hsl(240, 100%, 50%)"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","hsl(240, 100%, 50%)"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","cornsilk"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","potato quiche"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","potato quiche"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","transparent"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","currentColor"\]\] "foo[bar\]baz": execCommand("forecolor", false, "currentColor") return value]
    expected: FAIL

  [[["forecolor","currentColor"\]\] "foo[bar\]baz" compare innerHTML]
    expected: FAIL

  [[["forecolor","currentColor"\]\] "foo[bar\]baz" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<table><tbody><tr><td>foo<td>b[a\]r<td>baz</table>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo<font color=blue>[bar\]</font>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo{<font color=blue>bar</font>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgb(0, 0, 255)\\">foo<span style=\\"color: brown\\">b[ar\]</span>baz</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgb(0, 0, 255)\\">foo<span style=\\"color: brown\\">b[ar\]</span>baz</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo<span id=purple>ba[r</span>ba\]z" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgb(0, 0, 255)\\">foo<span id=purple>b[a\]r</span>baz</span>" compare innerHTML]
    expected: FAIL

  [[["forecolor","rgb(0,0,255)"\]\] "<a href=http://www.google.com>foo[bar\]baz</a>" compare innerHTML]
    expected: FAIL

  [[["forecolor","rgb(0,0,255)"\]\] "<a href=http://www.google.com>foo[bar\]baz</a>" queryCommandValue("forecolor") after]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<font color=\\"blue\\">[foo\]</font>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<font color=\\"0000ff\\">[foo\]</font>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<font color=\\"#0000ff\\">[foo\]</font>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: blue\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: #0000ff\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgb(0, 0, 255)\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgb(0%, 0%, 100%)\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgb( 0 ,0 ,255)\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgba(0, 0, 255, 0.0)\\">[foo\]</span>" queryCommandValue("forecolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgba(0, 0, 255, 0.0)\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgba(0, 0, 255, 0.0)\\">[foo\]</span>" queryCommandValue("forecolor") before]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgb(15, -10, 375)\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgba(0, 0, 0, 1)\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgba(255, 255, 255, 1)\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: rgba(0, 0, 255, 0.5)\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: hsl(240, 100%, 50%)\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: cornsilk\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: transparent\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=\\"color: currentColor\\">[foo\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "fo[o<font color=brown>b\]ar</font>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo<font color=brown>ba[r</font>b\]az" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "fo[o<font color=brown>bar</font>b\]az" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo[<font color=brown>b\]ar</font>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo<font color=brown>ba[r</font>\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo[<font color=brown>bar</font>\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo<font color=brown>[bar\]</font>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "foo{<font color=brown>bar</font>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<font color=brown>fo[o</font><span style=color:brown>b\]ar</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["forecolor","#0000FF"\]\] "<span style=color:brown>fo[o</span><span style=color:#0000ff>b\]ar</span>" compare innerHTML]
    expected: FAIL

