Chromium Code Reviews| Index: LayoutTests/fast/css/getComputedStyle/computed-style-percentage-top-with-position-inline.html |
| diff --git a/LayoutTests/fast/css/getComputedStyle/computed-style-percentage-top-with-position-inline.html b/LayoutTests/fast/css/getComputedStyle/computed-style-percentage-top-with-position-inline.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..67990cc1e09b0853e2d0bd55cd07f55f40a4fb4c |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/getComputedStyle/computed-style-percentage-top-with-position-inline.html |
| @@ -0,0 +1,13 @@ |
| +<!DOCTYPE html> |
| +</style> |
|
mstensho (USE GERRIT)
2015/04/13 21:40:04
Stray terminator.
changseok
2015/04/14 06:27:21
Removed.
|
| +<span id='outer' style="display:inline; position:relative; border:10px solid red; margin:20px; padding:30px;"> |
|
mstensho (USE GERRIT)
2015/04/13 21:40:04
Could you please add a line-height declaration her
changseok
2015/04/14 06:27:21
Done.
|
| + outer |
| + <div id='inner' style="position:absolute; top:50%; background:blue">inner</div> |
| +</span> |
| +<script src="../../../resources/js-test.js"></script> |
| +<script> |
| + var outer = document.querySelector("#outer"); |
| + var inner = document.querySelector("#inner"); |
| + var computedStyle = window.getComputedStyle(inner, null); |
| + shouldBeEqualToString("computedStyle.getPropertyValue('top')", "39px"); |
| +</script> |