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

Unified Diff: LayoutTests/paint/invalidation/composited-non-stacking-context-descendant-change-color.html

Issue 1306993005: Paint invalidation tests of composited-non-stacking-context descendant (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/paint/invalidation/composited-non-stacking-context-descendant-change-color.html
diff --git a/LayoutTests/paint/invalidation/composited-non-stacking-context-descendant-change-color.html b/LayoutTests/paint/invalidation/composited-non-stacking-context-descendant-change-color.html
new file mode 100644
index 0000000000000000000000000000000000000000..a442b7007723962c73bb6e54bc3a18301067b6f7
--- /dev/null
+++ b/LayoutTests/paint/invalidation/composited-non-stacking-context-descendant-change-color.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<style>
+#block {
+ position: relative;
+ width: 100px;
+ height: 100px;
+ top: 50px;
+ background-color: red;
+}
+
+#composited-non-stacking-context {
+ width: 20px;
+ height: 20px;
+ background-color: white;
+ backface-visibility: hidden;
+}
+</style>
+This test passes if there is a green square without red.
+<div id="composited-non-stacking-context">
+ <div id="block"></div>
+</div>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+runAfterLayoutAndPaint(function() {
+ document.getElementById("block").style.backgroundColor = "green";
+}, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698