Chromium Code Reviews| 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..b3d2682d937a6a0054b6f4c890a71c76268a12f5 |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/invalidation/content-attr-style-addition.html |
| @@ -0,0 +1,17 @@ |
| +<!DOCTYPE html> |
| +<head> |
|
rune
2014/12/10 13:03:54
Skip <head>
|
| + <style> |
| + #target::before { content: "FAIL (string) "; } |
| + </style> |
| +</head> |
| +<div id="target" my-attr="FAIL (attribute) ">test</div> |
| +<script> |
| +addEventListener("load", function(){ |
|
rune
2014/12/10 13:03:54
"onload = function(){" is shorter, but no big deal
rune
2014/12/10 13:03:55
"onload = function(){" is shorter, but no big deal
|
| + 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> |