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

Unified Diff: LayoutTests/fast/css-generated-content/attr-content-dynamic.html

Issue 609813002: Use LocalStyleChange for content:attr() changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added invalidation tests Created 6 years, 3 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-generated-content/attr-content-dynamic-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css-generated-content/attr-content-dynamic.html
diff --git a/LayoutTests/fast/css-generated-content/attr-content-dynamic.html b/LayoutTests/fast/css-generated-content/attr-content-dynamic.html
new file mode 100644
index 0000000000000000000000000000000000000000..54a273a6eba6e2618496088ac3ad4ed3044ef429
--- /dev/null
+++ b/LayoutTests/fast/css-generated-content/attr-content-dynamic.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<style>
+#before::before, #after::after { content: attr(my-value) }
+</style>
+<p>You should see two PASSes below.</p>
+<div id="before">SS</div>
+<div id="after">PA</div>
+<script>
+document.body.offsetTop; // force layout
+
+before.setAttribute("my-value", "PA");
+after.setAttribute("my-value", "SS");
esprehn 2014/09/29 03:47:15 This is really cute.
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css-generated-content/attr-content-dynamic-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698