layout/reftests/bugs/495385-2g.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 <!-- Test that removing a <br> can create frames for text around it -->
     5 <style>
     6 body > div { border:1px solid black; margin:1em;
     7              font-family:sans-serif; letter-spacing:2px; }
     8 </style>
     9 <script>
    10 function remove(id) {
    11   var e = document.getElementById(id);
    12   e.parentNode.removeChild(e);
    13 }
    14 function loaded() {
    15   document.body.offsetHeight;
    16   remove("b1");
    17   remove("b2");
    18   remove("b3");
    19   remove("b4");
    20 }
    21 </script>
    22 </head>
    23 <body onload="loaded()">
    24   <div><span>Hello</span><br id="b1"> <span>Kitty</span></div>
    25   <div><span>Hello</span> <br id="b2"><span>Kitty</span></div>
    26   <!-- we'll create frames here, but they won't make a difference to the rendering -->
    27   <div><br id="b3"> <span>Hello</span> <span>Kitty</span></div>
    28   <div><span>Hello</span> <span>Kitty</span> <br id="b4"></div>
    29 </body>
    30 </html>

mercurial