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

Unified Diff: LayoutTests/fast/css/counter-none.htm

Issue 141763003: Allow counter-reset/increment: none. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added assert. Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/counter-none-expected.htm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/counter-none.htm
diff --git a/LayoutTests/fast/css/counter-none.htm b/LayoutTests/fast/css/counter-none.htm
new file mode 100644
index 0000000000000000000000000000000000000000..e504ebc89f00ebbf88fc7ebb3a2c820b3d489d85
--- /dev/null
+++ b/LayoutTests/fast/css/counter-none.htm
@@ -0,0 +1,43 @@
+<!doctype html>
+<html>
+ <head>
+ <style>
+ .reset_section {
+ counter-reset: reset_section_count 13;
+ }
+ .reset_section {
+ counter-increment: reset_section_count;
+ counter-reset: none;
+ }
+ .reset_section > .title:before {
+ content: counter(reset_section_count);
+ }
+ .increment_section {
+ counter-increment: increment_section_count 2;
+ }
+ .increment_section {
+ counter-increment: none;
+ }
+ .increment_section > .title:before {
+ content: counter(increment_section_count);
+ }
+ </style>
+ </head>
+ <body>
+ <div class="reset_section">
+ <div class="title">Reset Section 1 title</div>
+ </div>
+ <div class="reset_section">
+ <div class="title">Reset Section 2 title</div>
+ </div>
+ <div class="increment_section">
+ <div class="title">Increment Section 1 title</div>
+ </div>
+ <div class="increment_section">
+ <div class="title">Increment Section 2 title</div>
+ </div>
+ <div class="increment_section">
+ <div class="title">Increment Section 2 title</div>
+ </div>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/css/counter-none-expected.htm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698