Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: LayoutTests/fast/repaint/abspos-shift-image-incorrect-repaint.html

Issue 202433003: Fix NeedsFullRepaintForPositionedMovementLayout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added some more rebaseline Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/repaint/abspos-shift-image-incorrect-repaint-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698