Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
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> |