OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <style> | |
3 .block { | |
4 width: 25px; | |
5 height: 50px; | |
6 background-color: green; | |
7 } | |
8 | |
9 .float { | |
10 width: 25px; | |
11 height: 50px; | |
12 background-color: green; | |
13 display: inline; | |
mstensho (USE GERRIT)
2015/10/29 20:00:26
Not needed. 'float' overrides this to 'block'.
| |
14 float: left; | |
15 } | |
16 </style> | |
17 <p>crbug.com/322039: There should be a green <em>square</em> below.</p> | |
18 <div> | |
19 <br> | |
20 <div id="first" class="block"></div> | |
21 <div class="float"></div> | |
22 </div> | |
23 <script> | |
24 document.body.offsetTop; | |
25 document.getElementById("first").style.display = "inline-block"; | |
26 </script> | |
27 | |
OLD | NEW |