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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/compositing/should-not-repaint-composited-descendants-on-overflow-change.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 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/paint/invalidation/compositing/should-not-repaint-composited-descendants-on-overflow-change.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/should-not-repaint-composited-descendants-on-overflow-change.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/should-not-repaint-composited-descendants-on-overflow-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..ec21601c3506a10e1a76ed6024ac974b7d2035b2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/should-not-repaint-composited-descendants-on-overflow-change.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<script src="../resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ document.getElementById('overflow1').style.overflow = "visible";
+ document.getElementById('overflow2').style.overflow = "hidden";
+}
+onload = runRepaintAndPixelTest;
+</script>
+<style>
+body {
+ margin: 0;
+}
+#overflow1 {
+ overflow: hidden;
+ width: 200px;
+ height: 200px;
+}
+#overflow2 {
+ overflow: visible;
+ width: 200px;
+ height: 200px;
+}
+.composited-child {
+ width: 100px;
+ height: 100px;
+ background-color: green;
+ backface-visibility: hidden;
+}
+.overflow-child {
+ position: relative;
+ top: 50px;
+ left: 150px;
+}
+</style>
+<!-- We should not repaint composited descendants on overflow style changes (verified with the text expectation).
+The compositor should handle any visual change caused by the change of overflow clipping (verified with the pixel expectation). -->
+<div id="overflow1">
+ <div class="composited-child"></div>
+ <div class="composited-child overflow-child"></div>
+</div>
+<div id="overflow2">
+ <div class="composited-child"></div>
+ <div class="composited-child overflow-child"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698