| OLD | NEW |
| 1 <style> | 1 <style> |
| 2 #a { content: attr(b); } | 2 #a { content: attr(b); } |
| 3 #c { content: attr("x"); } | 3 #c { content: attr("x"); } |
| 4 #d { content: attr(0); } | 4 #d { content: attr(0); } |
| 5 #e { content: attr(0.0); } | 5 #e { content: attr(0.0); } |
| 6 #f { content: attr(0%); } | 6 #f { content: attr(0%); } |
| 7 #g { content: attr(0px); } | 7 #g { content: attr(0px); } |
| 8 #h { content: attr(); } | 8 #h { content: attr(); } |
| 9 #i { content: attr(+0); } | 9 #i { content: attr(+0); } |
| 10 #j { content: attr(-k); } | 10 #j { content: attr(-k); } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 <p>Expected result:</p> | 26 <p>Expected result:</p> |
| 27 | 27 |
| 28 <pre id="expected">#a { content: attr(b); } | 28 <pre id="expected">#a { content: attr(b); } |
| 29 #c { } | 29 #c { } |
| 30 #d { } | 30 #d { } |
| 31 #e { } | 31 #e { } |
| 32 #f { } | 32 #f { } |
| 33 #g { } | 33 #g { } |
| 34 #h { } | 34 #h { } |
| 35 #i { } | 35 #i { } |
| 36 #j { } | 36 #j { content: attr(-k); } |
| 37 #l { } | 37 #l { } |
| 38 #n { } | 38 #n { } |
| 39 #q { } | 39 #q { } |
| 40 #r { } | 40 #r { } |
| 41 #s { } | 41 #s { } |
| 42 #t { } | 42 #t { } |
| 43 #u { } | 43 #u { } |
| 44 </pre> | 44 </pre> |
| 45 | 45 |
| 46 <script> | 46 <script> |
| 47 | 47 |
| 48 if (window.testRunner) | 48 if (window.testRunner) |
| 49 testRunner.dumpAsText(); | 49 testRunner.dumpAsText(); |
| 50 | 50 |
| 51 var rules = document.styleSheets[0].cssRules; | 51 var rules = document.styleSheets[0].cssRules; |
| 52 var text = ""; | 52 var text = ""; |
| 53 for (var i = 0; i < rules.length; i++) { | 53 for (var i = 0; i < rules.length; i++) { |
| 54 text += rules.item(i).cssText; | 54 text += rules.item(i).cssText; |
| 55 text += "\n"; | 55 text += "\n"; |
| 56 } | 56 } |
| 57 | 57 |
| 58 document.getElementById("result").appendChild(document.createTextNode(text)); | 58 document.getElementById("result").appendChild(document.createTextNode(text)); |
| 59 | 59 |
| 60 if (document.getElementById("result").firstChild.data === document.getElementByI
d("expected").firstChild.data) | 60 if (document.getElementById("result").firstChild.data === document.getElementByI
d("expected").firstChild.data) |
| 61 document.getElementById("message").firstChild.data = "SUCCESS"; | 61 document.getElementById("message").firstChild.data = "SUCCESS"; |
| 62 else | 62 else |
| 63 document.getElementById("message").firstChild.data = "FAILURE"; | 63 document.getElementById("message").firstChild.data = "FAILURE"; |
| 64 | 64 |
| 65 </script> | 65 </script> |
| OLD | NEW |