Chromium Code Reviews| Index: LayoutTests/fast/css/absolute-position-with-negative-width.html |
| diff --git a/LayoutTests/fast/css/absolute-position-with-negative-width.html b/LayoutTests/fast/css/absolute-position-with-negative-width.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..11c69ee5802d46f362a8f29fb9a304ee646e1752 |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/absolute-position-with-negative-width.html |
| @@ -0,0 +1,13 @@ |
| +<!DOCTYPE HTML> |
| +<script src="../../resources/js-test.js"></script> |
| + |
| +<div style="position: relative; width: 0px"> |
| + <div style="position: absolute; left: 1px; right: 1px;" id="absolute_with_left_right"></div> |
| +</div> |
| + |
| +<script> |
| + absolute_with_left_right = document.getElementById("absolute_with_left_right"); |
| + shouldBe("absolute_with_left_right.getBoundingClientRect().width","0"); |
| + shouldBe("absolute_with_left_right.getClientRects()[0].width","0"); |
| + shouldBe("absolute_with_left_right.offsetWidth","0"); |
|
rune
2014/09/18 13:07:32
Most tests don't indent script source, but if you
Kyungtae Kim
2014/09/18 14:00:43
Done.
|
| +</script> |