layout/reftests/bugs/495385-5.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 <style>
michael@0 5 body > div { border:1px solid black; margin:1em; }
michael@0 6 div:first-line { color:green; }
michael@0 7 div:first-letter { color:lime; }
michael@0 8 .f:first-letter { float:left; }
michael@0 9 </style>
michael@0 10 <script>
michael@0 11 function setH(id) {
michael@0 12 document.getElementById(id).firstChild.data = "H";
michael@0 13 }
michael@0 14 function insertSpan(id) {
michael@0 15 var d = document.getElementById(id);
michael@0 16 var span = document.createElement("span");
michael@0 17 span.textContent = "Hello";
michael@0 18 d.insertBefore(span, d.firstChild);
michael@0 19 }
michael@0 20 function loaded() {
michael@0 21 setH("d1");
michael@0 22 setH("d2");
michael@0 23 insertSpan("d3");
michael@0 24 insertSpan("d4");
michael@0 25 }
michael@0 26 </script>
michael@0 27 </head>
michael@0 28 <body onload="loaded()">
michael@0 29 <div> Hello<br>Kitty</div>
michael@0 30 <div class="f"> <span>Hello</span><br>Kitty</div>
michael@0 31 <div id="d1"> <span>ello</span><br>Kitty</div>
michael@0 32 <div id="d2" class="f"> <span>ello</span><br>Kitty</div>
michael@0 33 <div id="d3"> <span>Hello</span><br>Kitty</div>
michael@0 34 <div id="d4" class="f"> <span>Hello</span><br>Kitty</div>
michael@0 35 </body>
michael@0 36 </html>

mercurial