[italic.html]
  type: testharness
  [[["stylewithcss","true"\],["italic",""\]\] "<span>[foo</span> <span>bar\]</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<span>[foo</span> <span>bar\]</span>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<span>[foo</span> <span>bar\]</span>" queryCommandIndeterm("italic") before]
    expected: FAIL

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

  [[["stylewithcss","true"\],["italic",""\]\] "<p>[foo</p><p> <span>bar</span> </p><p>baz\]</p>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<p>[foo</p><p> <span>bar</span> </p><p>baz\]</p>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["italic",""\]\] "<span>foo[</span><span>\]bar</span>" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<address>[bar\]</address>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<address>[bar\]</address>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<address>[bar\]</address>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<address>[bar\]</address>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<cite>[bar\]</cite>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<cite>[bar\]</cite>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<cite>[bar\]</cite>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<cite>[bar\]</cite>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<dfn>[bar\]</dfn>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<dfn>[bar\]</dfn>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<dfn>[bar\]</dfn>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<dfn>[bar\]</dfn>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<var>[bar\]</var>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<var>[bar\]</var>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<var>[bar\]</var>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<var>[bar\]</var>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo{<address>bar</address>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo{<address>bar</address>}baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo{<address>bar</address>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo{<address>bar</address>}baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo{<cite>bar</cite>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo{<cite>bar</cite>}baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo{<cite>bar</cite>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo{<cite>bar</cite>}baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo{<dfn>bar</dfn>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo{<dfn>bar</dfn>}baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo{<dfn>bar</dfn>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo{<dfn>bar</dfn>}baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo{<var>bar</var>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo{<var>bar</var>}baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo{<var>bar</var>}baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo{<var>bar</var>}baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<address>b[a\]r</address>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<address>b[a\]r</address>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<address>b[a\]r</address>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<address>b[a\]r</address>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<cite>b[a\]r</cite>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<cite>b[a\]r</cite>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<cite>b[a\]r</cite>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<cite>b[a\]r</cite>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<dfn>b[a\]r</dfn>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<dfn>b[a\]r</dfn>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<dfn>b[a\]r</dfn>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<dfn>b[a\]r</dfn>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<em>b[a\]r</em>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<em>b[a\]r</em>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<i>b[a\]r</i>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<var>b[a\]r</var>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<var>b[a\]r</var>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<var>b[a\]r</var>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<var>b[a\]r</var>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "fo[o<em>bar</em>b\]az" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "fo[o<em>bar</em>b\]az" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo[<em>bar</em>baz\]" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo[<em>bar</em>baz\]" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "[foo<em>bar</em>\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "[foo<em>bar</em>\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<span style=\\"font-style: oblique\\">b[a\]r</span>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "foo<span style=\\"font-style: oblique\\">b[a\]r</span>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<i>{<p>foo</p><p>bar</p>}<p>baz</p></i>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<i>{<p>foo</p><p>bar</p>}<p>baz</p></i>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<i><p>foo[<b>bar</b>}</p><p>baz</p></i>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<i><p>foo[<b>bar</b>}</p><p>baz</p></i>" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<i><p>foo[<b>bar</b>}</p><p>baz</p></i>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<i><p>foo[<b>bar</b>}</p><p>baz</p></i>" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo[<i>b\]ar</i>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "foo<i>ba[r</i>\]baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "fo[o<span style=font-style:oblique>b\]ar</span>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "fo[o<span style=font-style:oblique>b\]ar</span>baz" queryCommandIndeterm("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "fo[o<span style=font-style:oblique>b\]ar</span>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "fo[o<span style=font-style:oblique>b\]ar</span>baz" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "fo[o<span style=font-style:oblique>b\]ar</span>baz" queryCommandIndeterm("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "fo[o<span style=font-style:oblique>b\]ar</span>baz" queryCommandState("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b\]ar</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b\]ar</span>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b\]ar</span>" queryCommandState("italic") before]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b\]ar</span>" queryCommandIndeterm("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b\]ar</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b\]ar</span>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b\]ar</span>" queryCommandState("italic") before]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<span style=font-style:italic>fo[o</span><span style=font-style:oblique>b\]ar</span>" queryCommandIndeterm("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b\]ar</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b\]ar</span>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b\]ar</span>" queryCommandState("italic") before]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b\]ar</span>" queryCommandIndeterm("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b\]ar</span>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b\]ar</span>" queryCommandIndeterm("italic") before]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b\]ar</span>" queryCommandState("italic") before]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<span style=font-style:oblique>fo[o</span><span style=font-style:italic>b\]ar</span>" queryCommandIndeterm("italic") after]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<i>fo[o</i><address>b\]ar</address>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["italic",""\]\] "<i>fo[o</i><address>b\]ar</address>" queryCommandIndeterm("italic") after]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<i>fo[o</i><address>b\]ar</address>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["italic",""\]\] "<i>fo[o</i><address>b\]ar</address>" queryCommandIndeterm("italic") after]
    expected: FAIL

