Skip to content

Commit ed469bd

Browse files
committed
[css-counter-styles] Handle override cycles.
1 parent cd290ba commit ed469bd

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

css-counter-styles/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,12 @@ Tweaking Existing Counter Styles: the ''override'' system</h4>
584584
If a @counter-style uses the ''override'' system,
585585
it must not contain a 'symbols' or 'additive-symbols' descriptor,
586586
or else the ''@counter-style'' rule is invalid.
587+
587588
If the specified counter style name isn't the name of any currently-defined counter style,
588589
it must be treated as if it was overriding the ''decimal'' counter style.
590+
If one or more ''@counter-style'' rules form a cycle with their ''override'' values,
591+
all of the counter styles participating in the cycle
592+
must be treated as if they were overriding the ''decimal'' counter style instead.
589593

590594

591595
<h3 id='counter-style-negative'>

css-counter-styles/Overview.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,12 @@ <h4 class="heading settled heading" data-level=3.1.7 id=override-system><span cl
707707
<p> If a @counter-style uses the <a class=css data-link-type=maybe href=#valuedef-override title=override>override</a> system,
708708
it must not contain a <a class=property data-link-type=propdesc href=#descdef-symbols title=symbols>symbols</a> or <a class=property data-link-type=propdesc href=#descdef-additive-symbols title=additive-symbols>additive-symbols</a> descriptor,
709709
or else the <a class=css data-link-type=maybe href=#at-ruledef-counter-style title=@counter-style>@counter-style</a> rule is invalid.
710-
If the specified counter style name isn’t the name of any currently-defined counter style,
710+
711+
<p> If the specified counter style name isn’t the name of any currently-defined counter style,
711712
it must be treated as if it was overriding the <a class=css data-link-type=maybe href=#valuedef-decimal title=decimal>decimal</a> counter style.
713+
If one or more <a class=css data-link-type=maybe href=#at-ruledef-counter-style title=@counter-style>@counter-style</a> rules form a cycle with their <a class=css data-link-type=maybe href=#valuedef-override title=override>override</a> values,
714+
all of the counter styles participating in the cycle
715+
must be treated as if they were overriding the <a class=css data-link-type=maybe href=#valuedef-decimal title=decimal>decimal</a> counter style instead.
712716

713717

714718
<h3 class="heading settled heading" data-level=3.2 id=counter-style-negative><span class=secno>3.2 </span><span class=content>

0 commit comments

Comments
 (0)