Index: LayoutTests/fast/repaint/absolute-margin-change-repaint.html |
diff --git a/LayoutTests/fast/repaint/absolute-margin-change-repaint.html b/LayoutTests/fast/repaint/absolute-margin-change-repaint.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4b4ad0f3e158e55e541fbebdec638e96397a43e8 |
--- /dev/null |
+++ b/LayoutTests/fast/repaint/absolute-margin-change-repaint.html |
@@ -0,0 +1,30 @@ |
+<!DOCTYPE HTML> |
+<script src="resources/text-based-repaint.js"></script> |
+<style> |
+ body { |
+ margin: 0; |
+ } |
+ #container { |
+ position: relative; |
+ top: 40px; |
+ width: 200px; |
+ height: 400px; |
+ } |
+ #test { |
+ position: absolute; |
+ background-color: green; |
+ width: 100px; |
+ height: 100px; |
+ } |
+</style> |
+<script> |
+ function repaintTest() |
+ { |
+ document.getElementById("test").style['margin-top'] = '20px'; |
+ } |
+ window.onload = runRepaintTest; |
+</script> |
+<div id="container"> |
+ <div id="test"></div> |
+</div> |
+Tests the repainting of absolute element when margin-top changes. |