layout/reftests/bugs/495385-2i.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

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

mercurial