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

Unified Diff: LayoutTests/compositing/change-from-paints-into-ancestor-to-paints-into-own-backing-for-intrinsic-reason.html

Issue 512293002: Fix paint invalidation when composited layers change from paints-into-ancestor to self-painting. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test. Created 6 years, 4 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/compositing/change-from-paints-into-ancestor-to-paints-into-own-backing-for-intrinsic-reason.html
diff --git a/LayoutTests/compositing/change-from-paints-into-ancestor-to-paints-into-own-backing-for-intrinsic-reason.html b/LayoutTests/compositing/change-from-paints-into-ancestor-to-paints-into-own-backing-for-intrinsic-reason.html
new file mode 100644
index 0000000000000000000000000000000000000000..feefdc642338a3a2e93bdccaae159e6de4584abc
--- /dev/null
+++ b/LayoutTests/compositing/change-from-paints-into-ancestor-to-paints-into-own-backing-for-intrinsic-reason.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<style>
+.spinner {
+ backface-visibility: hidden;
+ background-color: blue;
+ height: 100px;
+ width: 100px;
+}
+.transparent {
+ opacity: 0;
+}
+#container {
+ -webkit-perspective: 1px;
+ background-color: red;
+ overflow: hidden;
+}
+</style>
+<script src="../fast/repaint/resources/text-based-repaint.js"></script>
+<div id="container">
+ <div class="spinner"></div>
+</div>
+<script>
+// Tests that transitioning the container div from "composited but paints into ancestor" into "composited into own backing"
+// for intrinsic reasons (in this case due to opacity change) correctly invalidates the old paint invalidation backing (document)
+// before the change.
+function repaintTest() {
+ document.getElementById('container').classList.add('transparent');
+}
+if (window.testRunner)
+ runRepaintTest();
+</script>

Powered by Google App Engine
This is Rietveld 408576698