Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 #target::before { content: "FAIL (string) "; } | |
| 4 </style> | |
| 5 <div id="target">test</div> | |
| 6 <script> | |
| 7 addEventListener("load", function(){ | |
| 8 target.setAttribute("my-attr", "FAIL (attribute) "); | |
| 9 target.offsetTop; | |
| 10 document.styleSheets[0].cssRules[0].style.content = "attr(my-attr)"; | |
| 11 target.setAttribute("my-attr", "PASS "); | |
| 12 }); | |
| 13 </script> | |
| OLD | NEW |