| 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..cee5e5ebb40d271b1f7661943b6caee6c7fc229b
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/getComputedStyle/computed-style-percentage-top-with-position-inline.html
|
| @@ -0,0 +1,11 @@
|
| +<!DOCTYPE html>
|
| +<span id='outer' style="display:inline; position:relative; font:20px Ahem; border:10px solid red; margin:20px; padding:30px;">
|
| + outer
|
| + <div id='inner' style="position:absolute; top:50%; background:blue">inner</div>
|
| +</span>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<script>
|
| + var inner = document.querySelector("#inner");
|
| + var computedStyle = window.getComputedStyle(inner, null);
|
| + shouldBeEqualToString("computedStyle.getPropertyValue('top')", "40px");
|
| +</script>
|
|
|