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

Unified Diff: LayoutTests/fast/css/invalidation/content-attr-style-mutation.html

Issue 772103002: Collect content:attr(...)-features in RuleFeatureSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Avoid findPropertyIndex when possible. Created 6 years 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/invalidation/content-attr-style-mutation.html
diff --git a/LayoutTests/fast/css/invalidation/content-attr-style-mutation.html b/LayoutTests/fast/css/invalidation/content-attr-style-mutation.html
new file mode 100644
index 0000000000000000000000000000000000000000..edece8516ca2e6da88802b2a05a51d7568bd7fd4
--- /dev/null
+++ b/LayoutTests/fast/css/invalidation/content-attr-style-mutation.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<style>
+ #target::before { content: "FAIL (string) "; }
+</style>
+<div id="target">test</div>
+<script>
+onload = function(){
+ target.setAttribute("my-attr", "FAIL (attribute) ");
+ target.offsetTop;
+ document.styleSheets[0].cssRules[0].style.content = "attr(my-attr)";
+ target.setAttribute("my-attr", "PASS ");
+};
+</script>

Powered by Google App Engine
This is Rietveld 408576698