Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
|
mstensho (USE GERRIT)
2015/10/22 19:19:57
This test is beautiful!
| |
| 2 <style> | |
| 3 .float | |
| 4 { | |
| 5 float: left; | |
| 6 width: 25px; | |
| 7 height: 50px; | |
| 8 background-color: green; | |
| 9 } | |
| 10 .block | |
|
mstensho (USE GERRIT)
2015/10/22 19:19:57
Maybe you could just name it "inline-block", since
| |
| 11 { | |
| 12 width: 25px; | |
| 13 height: 50px; | |
| 14 background-color: green; | |
| 15 display: inline-block; | |
| 16 } | |
| 17 </style> | |
| 18 <p>crbug.com/523282: There should be a green <em>square</em> below.</p> | |
| 19 <div> | |
| 20 <div class="block"></div> | |
| 21 <div id="first"></div> | |
| 22 <div id="second" class="float"></div> | |
|
mstensho (USE GERRIT)
2015/10/22 19:19:57
Nobody cares about #second as an ID.
| |
| 23 </div> | |
| 24 <script> | |
| 25 document.body.offsetTop; | |
| 26 document.getElementById("first").style.display = "inline-block"; | |
| 27 </script> | |
| OLD | NEW |