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

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/clip-unclip-and-change.html

Issue 1368163002: Workaround rect-based paint invalidation on ancestor clip change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: third_party/WebKit/LayoutTests/fast/repaint/clip-unclip-and-change.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/clip-unclip-and-change.html b/third_party/WebKit/LayoutTests/fast/repaint/clip-unclip-and-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..c0ebee07dedd2e7c5d50d56da9367a228fab60ce
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/repaint/clip-unclip-and-change.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ content.style.height = '100px';
+ content.style.backgroundColor = 'green';
+}
+onload = function() {
+ runAfterLayoutAndPaint(function() {
+ container.style.height = '400px';
+ runRepaintTest();
+ });
+};
+</script>
+Tests paint invalidation of previous location of an element which was clipped to be invisible initially, becme visible because of clip change, then changed color and size. Passes if there is a green square.
+<div id="container" style="position: absolute; top: 100px; width: 100px; height: 10px; overflow: hidden">
+ <div style="height: 20px"></div>
+ <div style="width: 100px; height: 300px">
+ <div id="content" style="width: 100px; height: 300px; background-color: red"></div>
+ </div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698