Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/block/positioning/relative-with-implicit-height-containing-block-2.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/relative-with-implicit-height-containing-block-2.html b/third_party/WebKit/LayoutTests/fast/block/positioning/relative-with-implicit-height-containing-block-2.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1de921adfd8f4b02407c6c7148f4b3f3024c1c17 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/block/positioning/relative-with-implicit-height-containing-block-2.html |
| @@ -0,0 +1,35 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +#wrapper { |
| + position: absolute; |
| + top: 0px; |
| + left: 0px; |
| + bottom: 0px; |
| + right: 0px; |
| +} |
| +#child { |
| + position: relative; |
| + width: 100px; |
| + height: 100px; |
| + top: 50%; |
| + background-color: green; |
| +} |
| +#ref { |
| + position: absolute; |
| + width: 100px; |
| + height: 100px; |
| + top: 300px; |
| + left: 0px; |
| + background-color: red; |
| +} |
| +</style> |
| +<p>crbug.com/61049: There should be no red box below.</p> |
| +<div id="log"></div> |
| +<div id="ref"></div> |
| +<div id="wrapper"> |
| + <div id="child" data-positioned-offset-y=300></div> |
|
mstensho (USE GERRIT)
2016/08/29 16:02:26
I don't like that we make assumptions about the wi
rhogan
2016/08/29 20:36:01
It's about testing a container tree that is auto a
mstensho (USE GERRIT)
2016/08/29 21:04:38
I realize that you want to do that, since the rest
|
| +</div> |
| +<script src="../../../resources/check-layout.js"></script> |
| +<script> |
| +checkLayout("#child", log); |
| +</script> |