1
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
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">
9 document
.getElementById('float').style
.display
= 'none';
11 document
.addEventListener("load", test
, false);
14 #float { width:
100%; float:left; }
15 div { background: red; color: green; width:
1em; font-family: Ahem; }
19 <p>There should be no red below, only green.
</p>
20 <div id=
"float">X
</div>