Index: LayoutTests/fast/block/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto-vertical.html |
diff --git a/LayoutTests/fast/block/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto-vertical.html b/LayoutTests/fast/block/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto-vertical.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..490ed0c1e770a1684fbe3a0885d4829a90811f1a |
--- /dev/null |
+++ b/LayoutTests/fast/block/positioning/positioned-movement-layout-when-bottom-changes-to-and-from-auto-vertical.html |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE HTML> |
+<style> |
+body { |
+ margin: 0; |
+} |
+#test { |
+ position: absolute; |
+ background-color: green; |
+ top: 0; |
+ right: 0; |
+ bottom: 0; |
+ -webkit-writing-mode:vertical-rl; |
+} |
+</style> |
+<script src="../../../resources/check-layout.js"></script> |
+<script> |
+function runTest() |
+{ |
+ var test = document.getElementById('test'); |
+ document.body.offsetTop; |
+ test.style['left'] = '50%'; |
+ document.body.offsetTop; |
+ test.style['left'] = 'auto'; |
+ window.checkLayout("#test"); |
+} |
+window.onload = runTest; |
+</script> |
+Tests positioned movement layout when its height is changed by top/bottom changing from auto to fixed and back again. |
+<div id="test" data-expected-width=0></div> |