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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/compositing/should-not-repaint-composited-descendants.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.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/should-not-repaint-composited-descendants.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/should-not-repaint-composited-descendants.html
new file mode 100644
index 0000000000000000000000000000000000000000..aded658934d17df65ee0d35873a7b2196cc51aab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/should-not-repaint-composited-descendants.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+#composited-box {
+ backface-visibility: hidden;
+ position: absolute;
+ background-color: green;
+ clip: rect(40px, 110px, 110px, 40px);
+}
+.child {
+ width: 50px;
+ height: 50px;
+ background-color: green;
+}
+.composited {
+ backface-visibility: hidden;
+}
+</style>
+<script src="../resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ // This will cause a full layer repaint, but should not include the composited child.
+ document.getElementById('composited-box').style.clip = 'rect(30px, 120px, 120px, 30px)';
+}
+window.onload = runRepaintTest;
+</script>
+<div id="composited-box">
+ <div class="child"></div>
+ <div class="composited child"></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698