layout/reftests/bugs/323656-4.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>Test inheritance through first-letter</title>
michael@0 5 <style>
michael@0 6 .f2 > * { color: blue }
michael@0 7 .f2::first-letter { color: green }
michael@0 8 </style>
michael@0 9 <script>
michael@0 10 function make(str) {
michael@0 11 return document.createElement(str);
michael@0 12 }
michael@0 13
michael@0 14 window.onload = function() {
michael@0 15 var x = document.getElementById("d1");
michael@0 16 var y = make("span");
michael@0 17 y.appendChild(document.createTextNode("ABC"));
michael@0 18 x.appendChild(y);
michael@0 19
michael@0 20 x = document.getElementById("d2");
michael@0 21 y = make("span");
michael@0 22 x.appendChild(y);
michael@0 23 y.appendChild(document.createTextNode("ABC"));
michael@0 24 }
michael@0 25 </script>
michael@0 26 <body>
michael@0 27 <div class="f2"><span>ABC</span></div>
michael@0 28 <div class="f2" id="d1"></div>
michael@0 29 <div class="f2" id="d2"></div>
michael@0 30 </body>
michael@0 31 </html>

mercurial