testText("
abc", "abc", "Simplest possible test"); /**** white-space:normal ****/ testText("
abc", "abc", "Leading whitespace removed"); testText("
abc ", "abc", "Trailing whitespace removed"); testText("
abc def", "abc def", "Internal whitespace compressed"); testText("
abc\ndef", "abc def", "\\n converted to space"); testText("
abc\rdef", "abc def", "\\r converted to space"); testText("
abc\tdef", "abc def", "\\t converted to space"); testText("
abc
def", "abc\ndef", "Trailing whitespace before hard line break removed"); /****
 ****/

testText("
 abc", " abc", "Leading whitespace preserved");
testText("
abc ", "abc ", "Trailing whitespace preserved");
testText("
abc  def", "abc  def", "Internal whitespace preserved");
testText("
abc\ndef", "abc\ndef", "\\n preserved");
testText("
abc\rdef", "abc\ndef", "\\r converted to newline");
testText("
abc\tdef", "abc\tdef", "\\t preserved");

/**** 
****/ testText("
abc", " abc", "Leading whitespace preserved"); testText("
abc ", "abc ", "Trailing whitespace preserved"); testText("
abc def", "abc def", "Internal whitespace preserved"); testText("
abc\ndef", "abc\ndef", "\\n preserved"); testText("
abc\rdef", "abc\ndef", "\\r converted to newline"); testText("
abc\tdef", "abc\tdef", "\\t preserved"); /**** ****/ testText(" abc", " abc", "Leading whitespace preserved"); testText("abc ", "abc ", "Trailing whitespace preserved"); testText("abc def", "abc def", "Internal whitespace preserved"); testText("abc\ndef", "abc\ndef", "\\n preserved"); testText("abc\rdef", "abc\ndef", "\\r converted to newline"); testText("abc\tdef", "abc\tdef", "\\t preserved"); /****
****/ testText("
abc", "abc", "Leading whitespace removed"); testText("
abc ", "abc", "Trailing whitespace removed"); testText("
abc def", "abc def", "Internal whitespace collapsed"); testText("
abc\ndef", "abc\ndef", "\\n preserved"); testText("
abc\rdef", "abc\ndef", "\\r converted to newline"); testText("
abc\tdef", "abc def", "\\t converted to space"); /**** Collapsing whitespace across element boundaries ****/ testText("
abc def", "abc def", "Whitespace collapses across element boundaries"); testText("
abc def", "abc def", "Whitespace collapses across element boundaries"); testText("
abc def", "abc def", "Whitespace collapses across element boundaries"); /**** Soft line breaks ****/ testText("
abc def", "abc def", "Soft line breaks ignored"); /**** first-line/first-letter ****/ testText("
abc def", "ABC def", "::first-line styles applied"); testText("
abc def", "Abc def", "::first-letter styles applied"); testText("
abc def", "abc def", "::first-letter float ignored"); /****   ****/ testText("
 ", "\xA0", "  preserved"); /**** display:none ****/ testText("
abc", "abc", "display:none container"); testText("
abc def", "abc def", "No whitespace compression in display:none container"); testText("
abc def ", " abc def ", "No removal of leading/trailing whitespace in display:none container"); testText("
123abc", "123", "display:none child not rendered"); /**** display:contents ****/ if (CSS.supports("display", "contents")) { testText("
abc", "abc", "display:contents container"); testText("
abc", "abc", "display:contents container"); testText("
123abc", "123abc", "display:contents rendered"); testText("
123abc", "123abc", "display:contents rendered"); testText("
", "", "display:contents not processed via textContent"); testText("
", "", "display:contents not processed via textContent"); } /**** visibility:hidden ****/ testText("
abc", "", "visibility:hidden container"); testText("
123abc", "123", "visibility:hidden child not rendered"); testText("
123abc", "abc", "visibility:visible child rendered"); /**** visibility:collapse ****/ testText("
abc", "", "visibility:collapse row-group"); testText("
abc", "", "visibility:collapse row"); testText("
abc", "", "visibility:collapse cell"); testText("
abc", "abc", "visibility:collapse row-group with visible cell"); testText("
abc", "abc", "visibility:collapse row with visible cell"); testText("
12
", "2", "visibility:collapse honored on flex item"); testText("
12
", "2", "visibility:collapse honored on grid item"); /**** opacity:0 ****/ testText("
abc", "abc", "opacity:0 container"); testText("
abc def", "abc def", "Whitespace compression in opacity:0 container"); testText("
abc def ", "abc def", "Remove leading/trailing whitespace in opacity:0 container"); testText("
123abc", "123abc", "opacity:0 child rendered"); /**** generated content ****/ testText("
", "", "Generated content not included"); testText("
", "", "Generated content on child not included"); /**** innerText on replaced elements ****/ testText("