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> |