blob: a193303f324a439c837cae8ef35844aa072d52bb [file] [log] [blame]
rniwa@webkit.org47d67c02011-09-07 19:14:30 +00001<!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.orgea160a52011-09-07 23:16:08 +00006 <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.org47d67c02011-09-07 19:14:30 +000012 <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>