Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / t090204-display-change-01-b-ao.html
blobc6446be73291805c8bdb08c95a6d96546866c8fa
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 <script src="../resources/ahem.js"></script>
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop">
7 <script type="text/javascript">
8 function test() {
9 document.getElementById('float').style.display = 'none';
11 document.addEventListener("load", test, false);
12 </script>
13 <style>
14 #float { width: 100%; float:left; }
15 div { background: red; color: green; width: 1em; font-family: Ahem; }
16 </style>
17 </head>
18 <body>
19 <p>There should be no red below, only green.</p>
20 <div id="float">X</div>
21 <div>
23 </div>
24 </body>
25 </html>