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