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

Unified Diff: LayoutTests/fast/css/dynamic-class-backdrop-pseudo.html

Issue 195093004: Use invalidation sets for some pseudo elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added recalc count checks to tests. Created 6 years, 9 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/fast/css/dynamic-class-backdrop-pseudo.html
diff --git a/LayoutTests/fast/css/dynamic-class-backdrop-pseudo.html b/LayoutTests/fast/css/dynamic-class-backdrop-pseudo.html
new file mode 100644
index 0000000000000000000000000000000000000000..404492f5a9d8f3ce5c2ace429310b498cd71adbd
--- /dev/null
+++ b/LayoutTests/fast/css/dynamic-class-backdrop-pseudo.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+.a .b::backdrop { background-color: green; }
+</style>
+<div id="t">
+ <dialog class="b" id="dialog"><span></span><span></span><span></span></dialog>
+</div>
+<script>
+description("Change class affecting ::backdrop style");
+
+var dialog = document.getElementById("dialog");
+
+dialog.showModal();
+
+var green = 'rgb(0, 128, 0)';
+
+shouldNotBe("getComputedStyle(dialog, '::backdrop').backgroundColor", "green");
+
+document.body.offsetLeft;
+document.getElementById("t").className = "a";
+
+if (window.internals)
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3");
+
+shouldBe("getComputedStyle(dialog, '::backdrop').backgroundColor", "green");
+
+dialog.close();
+</script>

Powered by Google App Engine
This is Rietveld 408576698