Index: LayoutTests/fast/repaint/abspos-shift-image-incorrect-repaint.html |
diff --git a/LayoutTests/fast/repaint/abspos-shift-image-incorrect-repaint.html b/LayoutTests/fast/repaint/abspos-shift-image-incorrect-repaint.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..45e29ad089073d2f8e13d1f21ab54cf351c3aae5 |
--- /dev/null |
+++ b/LayoutTests/fast/repaint/abspos-shift-image-incorrect-repaint.html |
@@ -0,0 +1,40 @@ |
+<!DOCTYPE html> |
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
+<head> |
+<style> |
+.imageWrapper |
+{ |
+ position: relative; |
+ display: inline-block; |
+ width: 700px; |
+} |
+ |
+#shiftMe |
+{ |
+ position: absolute; |
+ top: 0px; |
+ left: 0px; |
+ width: 1500px; |
+} |
+</style> |
+<script src="resources/text-based-repaint.js"></script> |
+<script> |
+function repaintTest() |
+{ |
+ shiftMe.style.left = "-250px"; |
+} |
+</script> |
+</head> |
+<body onload="runRepaintTest();"> |
+ <div>This test checks that shifting an abspos container will properly repaint its descendants.</div> |
+ <div>The images below should be correctly repainted.</div> |
+ <div id="shiftMe"> |
+ <div class="imageWrapper"> |
+ <img src="resources/apple.jpg"> |
+ </div> |
+ <div class="imageWrapper"> |
+ <img src="resources/apple.jpg"> |
+ </div> |
+ </div> |
+</body> |
+</html> |