layout/reftests/ib-split/insert-into-split-inline-13.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.

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <title>CSS 2.1 Test Suite: handling of blocks inside inlines</title>
     5     <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
     6     <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
     7     <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level"/>
     8     <meta name="flags" content="dom" />
     9     <style>
    10       #i { border: 2px solid; }
    11       #i::before { display: block; content: "One"; }
    12       #i::after { content: "Three"; }
    13     </style>
    14     <script>
    15       function doTest() {
    16         var i = document.getElementById("i");
    17         i.insertBefore(document.createTextNode("Two"), i.firstChild);
    18       }
    19     </script>
    20   </head>
    21   <body onload="doTest()">
    22     <span id="i"><span style="display: none"></span></span>
    23   </body>
    24 </html>

mercurial