Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/block/float/add-inline-before-float-and-after-anonymous-block.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/block/float/add-inline-before-float-and-after-anonymous-block.html b/third_party/WebKit/LayoutTests/fast/block/float/add-inline-before-float-and-after-anonymous-block.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..32deabb6e98bb2d7fc6b5091c427ae7e4a6479d8 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/block/float/add-inline-before-float-and-after-anonymous-block.html |
| @@ -0,0 +1,27 @@ |
| +<!DOCTYPE html> |
|
mstensho (USE GERRIT)
2015/10/22 19:19:57
This test is beautiful!
|
| +<style> |
| +.float |
| +{ |
| + float: left; |
| + width: 25px; |
| + height: 50px; |
| + background-color: green; |
| +} |
| +.block |
|
mstensho (USE GERRIT)
2015/10/22 19:19:57
Maybe you could just name it "inline-block", since
|
| +{ |
| + width: 25px; |
| + height: 50px; |
| + background-color: green; |
| + display: inline-block; |
| +} |
| +</style> |
| +<p>crbug.com/523282: There should be a green <em>square</em> below.</p> |
| +<div> |
| + <div class="block"></div> |
| + <div id="first"></div> |
| + <div id="second" class="float"></div> |
|
mstensho (USE GERRIT)
2015/10/22 19:19:57
Nobody cares about #second as an ID.
|
| +</div> |
| +<script> |
| + document.body.offsetTop; |
| + document.getElementById("first").style.display = "inline-block"; |
| +</script> |