layout/reftests/bugs/323656-4.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <title>Test inheritance through first-letter</title>
     5     <style>
     6       .f2 > * { color: blue }
     7       .f2::first-letter { color: green }
     8     </style>
     9     <script>
    10       function make(str) {
    11         return document.createElement(str);
    12       }
    14       window.onload = function() {
    15         var x = document.getElementById("d1");
    16         var y = make("span");
    17         y.appendChild(document.createTextNode("ABC"));
    18         x.appendChild(y);
    20         x = document.getElementById("d2");
    21         y = make("span");
    22         x.appendChild(y);
    23         y.appendChild(document.createTextNode("ABC"));
    24       }
    25     </script>
    26   <body>
    27     <div class="f2"><span>ABC</span></div>
    28     <div class="f2" id="d1"></div>
    29     <div class="f2" id="d2"></div>
    30   </body>
    31 </html>

mercurial