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

Unified Diff: LayoutTests/fast/css/invalidation/targeted-attribute-scope.html

Issue 211333003: Restore attribute array length in RecursionCheckPoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/targeted-attribute-scope-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/invalidation/targeted-attribute-scope.html
diff --git a/LayoutTests/fast/css/invalidation/targeted-attribute-scope.html b/LayoutTests/fast/css/invalidation/targeted-attribute-scope.html
new file mode 100644
index 0000000000000000000000000000000000000000..6ff5908bb9a2de221f2c654eb83f2d8475c26584
--- /dev/null
+++ b/LayoutTests/fast/css/invalidation/targeted-attribute-scope.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<style>
+.inner1 [attr] { color: red; }
+.inner2 .nomatch { color: red; }
+</style>
+<div id="outer">
+ <div id="inner1">
+ <div></div>
+ </div>
+ <div id="inner2">
+ <div attr></div>
+ </div>
+</div>
+<script>
+description("Test invalidation set scope for attribute features.");
+
+document.body.offsetLeft; // force style recalc.
+
+document.getElementById("inner1").className = "inner1";
+document.getElementById("inner2").className = "inner2";
+if (window.internals)
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/targeted-attribute-scope-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698