Index: LayoutTests/fast/repaint/shift-relative-positioned-container-with-image-addition.html |
diff --git a/LayoutTests/fast/repaint/shift-relative-positioned-container-with-image-addition.html b/LayoutTests/fast/repaint/shift-relative-positioned-container-with-image-addition.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..91d2ec04b115d931161db21311cb663493d80318 |
--- /dev/null |
+++ b/LayoutTests/fast/repaint/shift-relative-positioned-container-with-image-addition.html |
@@ -0,0 +1,34 @@ |
+<!DOCTYPE html> |
+<html> |
+<style> |
+img { |
+ max-width: 100%; |
+} |
+.relative { |
+ position: relative; |
+} |
+/* Not needed but helps to see the bug. */ |
+.paddingTop { |
+ padding: 50px; |
+} |
+</style> |
+<script src="resources/text-based-repaint.js" type="text/javascript"></script> |
+<script> |
+function repaintTest() |
+{ |
+ iframe.style.display = "block"; |
+} |
+window.addEventListener("load", runRepaintTest, false); |
+</script> |
+<body> |
+ <p><a href="https://code.google.com/p/chromium/issues/detail?id=353933">issue 353933</a>: Pages missing invalidations<br> |
+ The test checks that creating a new renderer correctly invalidate the existing shifted content. |
+ The image should be correctly invalidated below.</p> |
+ <iframe id="iframe" width="728" height="90" style="display: none"></iframe> |
+ <div class="relative"> |
+ <div class="relative paddingTop"> |
+ <img src="resources/ducky.png"></img> |
+ </div> |
+ </div> |
+</body> |
+</html> |