layout/reftests/table-anonymous-boxes/white-space-25.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4 <title>CSS 2.1 Test Suite: anonymous table boxes</title>
michael@0 5 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
michael@0 6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
michael@0 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes"/>
michael@0 8 <meta name="flags" content="dom" />
michael@0 9 <script>
michael@0 10 function doTest() {
michael@0 11 var t = document.getElementById("t");
michael@0 12 var parent = t.parentNode;
michael@0 13 parent.insertBefore(document.createTextNode(" "), t);
michael@0 14 parent.insertBefore(document.createTextNode("bc"), t);
michael@0 15 parent.insertBefore(document.createTextNode(" "), t);
michael@0 16 document.documentElement.className = "";
michael@0 17 }
michael@0 18 </script>
michael@0 19 </head>
michael@0 20 <body onload="doTest()">
michael@0 21 <span style="display:table-row; white-space: pre"><span style="display: table-cell">a</span><span id="t" style="display: table-cell">d</span></span>
michael@0 22 </body>
michael@0 23 </html>

mercurial