layout/reftests/table-anonymous-boxes/white-space-pre-1.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <title>CSS 2.1 Test Suite: anonymous table boxes</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/tables.html#anonymous-boxes"/>
     8     <meta name="flags" content="dom" />
     9     <style>
    10       #x:after { content: " cd"; display: table-cell; }
    11     </style>
    12     <script>
    13       function doTest() {
    14         var f = document.getElementById("f");
    15         f.parentNode.removeChild(f);
    16       }
    17     </script>
    18   </head>
    19   <body onload="doTest()">
    20     <div style="font-family: monospace; width: 10em; white-space: pre-wrap"><span id="f" style="float: left; width: 80%; height: 0.5em"></span><span id="x">a <script>document.body.offsetWidth;</script> <span style="display: table-cell">b</span></span></div>
    21   </body>
    22 </html>

mercurial