rniwa@webkit.org | 47d67c0 | 2011-09-07 19:14:30 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>CSS 2.1 Test Suite: Updating layout on display changes</title> |
| 5 | <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop"> |
rniwa@webkit.org | ea160a5 | 2011-09-07 23:16:08 +0000 | [diff] [blame] | 6 | <script type="text/javascript"> |
| 7 | function test() { |
| 8 | document.getElementById('float').style.display = 'none'; |
| 9 | } |
| 10 | window.addEventListener("load", test, false); |
| 11 | </script> |
rniwa@webkit.org | 47d67c0 | 2011-09-07 19:14:30 +0000 | [diff] [blame] | 12 | <style> |
| 13 | #float { width: 100%; float:left; } |
| 14 | div { background: red; color: green; width: 1em; font-family: Ahem; } |
| 15 | </style> |
| 16 | </head> |
| 17 | <body> |
| 18 | <p>There should be no red below, only green.</p> |
| 19 | <div id="float">X</div> |
| 20 | <div> |
| 21 | X |
| 22 | </div> |
| 23 | </body> |
| 24 | </html> |