Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1738)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/attr-parsing.html

Issue 1924313002: Make <attr-name> accept any CSS identifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698