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

Unified Diff: LayoutTests/fast/css/invalidation/content-attr-style-addition.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
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/content-attr-style-addition-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/invalidation/content-attr-style-addition.html
diff --git a/LayoutTests/fast/css/invalidation/content-attr-style-addition.html b/LayoutTests/fast/css/invalidation/content-attr-style-addition.html
new file mode 100644
index 0000000000000000000000000000000000000000..37f0c123bd75d79f4aafce1aea31dcc910f79942
--- /dev/null
+++ b/LayoutTests/fast/css/invalidation/content-attr-style-addition.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<style>
+ #target::before { content: "FAIL (string) "; }
+</style>
+<div id="target" my-attr="FAIL (attribute) ">test</div>
+<script>
+onload = function(){
+ var s = document.createElement("style");
+ s.textContent = "#target::before { content: attr(my-attr); }"
+ var head = document.querySelector("head");
+ head.appendChild(s);
+ target.offsetTop;
+ target.setAttribute("my-attr", "PASS ");
+};
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/content-attr-style-addition-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698