layout/reftests/first-line/out-of-flow-1d.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <title>CSS 2.1 Test Suite: :first-line</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/selector.html#first-line"/>
michael@0 8 <meta name="flags" content="dom" />
michael@0 9 <style>
michael@0 10 div { color: green }
michael@0 11 div::first-line { color: red }
michael@0 12 </style>
michael@0 13 <script>
michael@0 14 function runTest() {
michael@0 15 var s = document.createElement("span");
michael@0 16 s.setAttribute("style", "float: left");
michael@0 17 s.appendChild(document.createTextNode("This should be green"));
michael@0 18 var i = document.getElementById("i");
michael@0 19 i.parentNode.insertBefore(s, i);
michael@0 20 }
michael@0 21 </script>
michael@0 22 </head>
michael@0 23 <body onload="runTest()">
michael@0 24 <div><span id="i"></span></div>
michael@0 25 </body>
michael@0 26 </html>
michael@0 27

mercurial