[justifyright.html]
  type: testharness
  prefs: [editor.use_div_for_default_newlines: true]
  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "foo[\]bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "foo[\]bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<span>foo</span>{}<span>bar</span><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<span>foo</span>{}<span>bar</span><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<span>foo[</span><span>\]bar</span><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<span>foo[</span><span>\]bar</span><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "foo[bar\]baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "foo[bar\]baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "foo[bar<b>baz\]qoz</b>quz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "foo[bar<b>baz\]qoz</b>quz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p>foo[\]bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p>foo[\]bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p>foo[\]bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p>foo[\]bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p>foo[bar\]baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p>foo[bar\]baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p>foo[bar\]baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p>foo[bar\]baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<h1>foo[bar\]baz</h1><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<h1>foo[bar\]baz</h1><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<h1>foo[bar\]baz</h1><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<h1>foo[bar\]baz</h1><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<pre>foo[bar\]baz</pre><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<pre>foo[bar\]baz</pre><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<xmp>foo[bar\]baz</xmp><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<xmp>foo[bar\]baz</xmp><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<center><p>[foo\]<p>bar</center><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<center><p>[foo\]<p>bar</center><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<center><p>[foo\]<p>bar</center><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<center><p>[foo\]<p>bar</center><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<center><p>[foo\]<p>bar</center><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<center><p>[foo\]<p>bar</center><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<center><p>[foo<p>bar\]</center><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody><tr><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody><tr><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody><tr><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody><tr><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody><tr><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody><tr><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody><tr><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody><tr><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right><tbody data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table align=right data-start=0 data-end=1><tbody><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<table><tbody align=right><tr><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<table><tbody align=right><tr data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<table><tbody align=right><tr data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody align=right data-start=0 data-end=1><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody align=right><tr><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tbody align=right><tr><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<table><tbody><tr align=right><td>foo<td>b[a\]r<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<table><tbody><tr align=right data-start=1 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<table><tbody><tr align=right data-start=0 data-end=2><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table><tbody data-start=0 data-end=1><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<table data-start=0 data-end=1><tbody><tr align=right><td>foo<td>bar<td>baz</table><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") after]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") after]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "{<table><tr align=right><td>foo<td>bar<td>baz</table>}<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div align=center><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div align=center><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div align=center><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div align=center><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=center><p>[foo<p>bar}</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:center><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:center><p>[foo\]<p>bar</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:center><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:center><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:center><p>[foo\]<p>bar</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:center><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:center><p>[foo<p>bar\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:center><p>[foo<p>bar\]</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div align=justify><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div align=justify><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div align=justify><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div align=justify><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=justify><p>[foo<p>bar}</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:justify><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:justify><p>[foo\]<p>bar</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:justify><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:justify><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:justify><p>[foo\]<p>bar</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:justify><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:justify><p>[foo<p>bar\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:justify><p>[foo<p>bar\]</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div align=left><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div align=left><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div align=left><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div align=left><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=left><p>[foo<p>bar}</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:left><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:left><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:left><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:left><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:left><p>[foo<p>bar\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div align=right><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=right><p>[foo<p>bar}</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right><p>[foo\]<p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right><p>[foo\]<p>bar</div><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right><p>[foo\]<p>bar</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right><p>[foo<p>bar\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right><p>[foo<p>bar\]</div><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right><p>[foo<p>bar\]</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<div align=right>foo</div>[bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "[foo\]<div align=right>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div align=right>foo</div>[bar\]<div align=right>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div align=right>foo</div>[bar\]<div align=right>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div align=right><p>foo</div><p>[bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<p>[foo\]<div align=right><p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div align=right><p>foo</div><p>[bar\]<div align=right><p>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div align=right><p>foo</div><p>[bar\]<div align=right><p>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right>foo</div>[bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "[foo\]<div style=text-align:right>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right>foo</div>[bar\]<div style=text-align:right>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right>foo</div>[bar\]<div style=text-align:right>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right>foo</div>[bar\]<div style=text-align:right>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right>foo</div>[bar\]<div style=text-align:right>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right><p>foo</div><p>[bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<p>[foo\]<div style=text-align:right><p>bar</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right><p>foo</div><p>[bar\]<div style=text-align:right><p>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right><p>foo</div><p>[bar\]<div style=text-align:right><p>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right><p>foo</div><p>[bar\]<div style=text-align:right><p>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right><p>foo</div><p>[bar\]<div style=text-align:right><p>baz</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p align=right>foo<p>[bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p align=right>foo<p>[bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p align=right>foo<p>[bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p align=right>foo<p>[bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p>[foo\]<p align=right>bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p>[foo\]<p align=right>bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p>[foo\]<p align=right>bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p>[foo\]<p align=right>bar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p align=right>foo<p>[bar\]<p align=right>baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<p align=right>foo<p>[bar\]<p align=right>baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p align=right>foo<p>[bar\]<p align=right>baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<p align=right>foo<p>[bar\]<p align=right>baz<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div align=right>[foo</div>bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div align=right>[foo</div>bar\]<p>extra" queryCommandIndeterm("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div align=right>[foo</div>bar\]<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=right>[foo</div>bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=right>[foo</div>bar\]<p>extra" queryCommandIndeterm("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=right>[foo</div>bar\]<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div align=right>fo[o</div>b\]ar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div align=right>fo[o</div>b\]ar<p>extra" queryCommandIndeterm("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div align=right>fo[o</div>b\]ar<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=right>fo[o</div>b\]ar<p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=right>fo[o</div>b\]ar<p>extra" queryCommandIndeterm("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=right>fo[o</div>b\]ar<p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right>[foo</div>bar\]<p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right>[foo</div>bar\]<p>extra" queryCommandIndeterm("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right>[foo</div>bar\]<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right>fo[o</div>b\]ar<p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right>fo[o</div>b\]ar<p>extra" queryCommandIndeterm("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right>fo[o</div>b\]ar<p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["defaultparagraphseparator","div"\],["justifyright",""\]\] "<span style=text-align:right>[foo\]</span><p>extra" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","p"\],["justifyright",""\]\] "<span style=text-align:right>[foo\]</span><p>extra" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","div"\],["justifyright",""\]\] "<span style=text-align:right>f[o\]o</span><p>extra" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","p"\],["justifyright",""\]\] "<span style=text-align:right>f[o\]o</span><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz\]</div><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz\]</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz\]</div><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz\]</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right>[foo<div style=text-align:left contenteditable=false>bar</div>baz\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div align=nonsense><p>[foo\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:inherit><p>[foo\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<quasit align=center><p>[foo\]</p></quasit><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<quasit align=center><p>[foo\]</p></quasit><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<quasit align=center><p>[foo\]</p></quasit><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<quasit align=center><p>[foo\]</p></quasit><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:start>[foo\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:end>[foo\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:end>[foo\]</div><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:end>[foo\]</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div dir=rtl style=text-align:start>[foo\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div dir=rtl style=text-align:start>[foo\]</div><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div dir=rtl style=text-align:start>[foo\]</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div dir=rtl style=text-align:start>[foo\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div dir=rtl style=text-align:start>[foo\]</div><p>extra" queryCommandState("justifyright") before]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div dir=rtl style=text-align:start>[foo\]</div><p>extra" queryCommandValue("justifyright") before]
    expected: FAIL

  [[["stylewithcss","true"\],["justifyright",""\]\] "<div dir=rtl style=text-align:end>[foo\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["justifyright",""\]\] "<div dir=rtl style=text-align:end>[foo\]</div><p>extra" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div style=text-align:right><p>foo</div> <p>[bar\]" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<div align=right><p>foo</div> <p>[bar\]" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<p>[foo\]</p> <div style=text-align:right><p>bar</div>" compare innerHTML]
    expected: FAIL

  [[["justifyright",""\]\] "<p>[foo\]</p> <div align=right><p>bar</div>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right><p>foo</div> <p>[bar\]</p> <div style=text-align:right><p>baz</div>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div style=text-align:right><p>foo</div> <p>[bar\]</p> <div style=text-align:right><p>baz</div>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","true"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right><p>foo</div> <p>[bar\]</p> <div style=text-align:right><p>baz</div>" compare innerHTML]
    expected: FAIL

  [[["stylewithcss","false"\],["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div style=text-align:right><p>foo</div> <p>[bar\]</p> <div style=text-align:right><p>baz</div>" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","div"\],["justifyright",""\]\] "<div align=right><p>foo</div> <p>[bar\]</p> <div align=right><p>baz</div>" compare innerHTML]
    expected: FAIL

  [[["defaultparagraphseparator","p"\],["justifyright",""\]\] "<div align=right><p>foo</div> <p>[bar\]</p> <div align=right><p>baz</div>" compare innerHTML]
    expected: FAIL

