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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/repaint-subsequence-on-ancestor-clip-change-complex.html

Issue 1452313004: Don't use cached subsequence when clip changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/repaint-subsequence-on-ancestor-clip-change-complex-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/paint/invalidation/repaint-subsequence-on-ancestor-clip-change-complex.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/repaint-subsequence-on-ancestor-clip-change-complex.html b/third_party/WebKit/LayoutTests/paint/invalidation/repaint-subsequence-on-ancestor-clip-change-complex.html
new file mode 100644
index 0000000000000000000000000000000000000000..b1dd75d6d777819733cf0d6684e5463dc6b2de5b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/repaint-subsequence-on-ancestor-clip-change-complex.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+onload = function() {
+ runAfterLayoutAndPaint(function() {
+ container.style.width = '200px';
+ }, true);
+};
+</script>
+Tests repaint of subsequences when a non-stacking-context ancestor's clip changes.
+Passes if the text is clipped at the yellow background.
+<div id="container" style="overflow: hidden; background-color: yellow">
+ <div style="display: inline-block;">
+ <div style="width: 500px">
+ <div style="z-index: 2; position: relative">
+ <span style="display: inline-block; visibility: hidden; opacity: .6; width: 10px"></span>
+ Should be clipped: ABCDEFGHIJKLMNOPQRSTUVWXYZ
+ </div>
+ </div>
+ </div>
+</div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/repaint-subsequence-on-ancestor-clip-change-complex-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698