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

mercurial