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

Side by Side Diff: LayoutTests/fast/css/counters/counter-cssText.html

Issue 1102373002: Fix counters() separator serialization (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test failure Created 5 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/counters/counter-cssText-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 body { 4 body {
5 counter-reset: section; 5 counter-reset: section;
6 } 6 }
7 h1 { 7 h1 {
8 counter-increment: section; 8 counter-increment: section;
9 } 9 }
10 h2:before { 10 h2:before {
(...skipping 12 matching lines...) Expand all
23 content: counter(section, none); 23 content: counter(section, none);
24 } 24 }
25 </style> 25 </style>
26 <script src="../../../resources/js-test.js"></script> 26 <script src="../../../resources/js-test.js"></script>
27 </head> 27 </head>
28 <body> 28 <body>
29 <script> 29 <script>
30 description("Test the cssText output of counter-valued CSSPrimitiveValues"); 30 description("Test the cssText output of counter-valued CSSPrimitiveValues");
31 var rules = document.styleSheets[0].cssRules; 31 var rules = document.styleSheets[0].cssRules;
32 shouldBeEqualToString("rules[2].style.cssText", "content: counter(section, decim al);"); 32 shouldBeEqualToString("rules[2].style.cssText", "content: counter(section, decim al);");
33 shouldBeEqualToString("rules[3].style.cssText", "content: counters(section, ':', decimal);"); 33 shouldBeEqualToString("rules[3].style.cssText", "content: counters(section, \":\ ", decimal);");
34 shouldBeEqualToString("rules[4].style.cssText", "content: counter(section, lower -roman);"); 34 shouldBeEqualToString("rules[4].style.cssText", "content: counter(section, lower -roman);");
35 shouldBeEqualToString("rules[5].style.cssText", "content: counters(section, ',', upper-roman);"); 35 shouldBeEqualToString("rules[5].style.cssText", "content: counters(section, \",\ ", upper-roman);");
36 shouldBeEqualToString("rules[6].style.cssText", "content: counter(section, none) ;"); 36 shouldBeEqualToString("rules[6].style.cssText", "content: counter(section, none) ;");
37 </script> 37 </script>
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/counters/counter-cssText-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698