Skip to content

Commit a2bdf8b

Browse files
committed
[css-counter-styles] Clarify the minimum maximum lengths to be in codepoints.
1 parent 62d9c6f commit a2bdf8b

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

css-counter-styles/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ Repeating Symbols: the ''symbolic'' system</h4>
353353
The ''symbolic'' system will produce representations with sizes that are linear in the magnitude of the counter value.
354354
This can potentially be abused to generate excessively large representations
355355
and consume undue amounts of the user's memory or even hang their browser.
356-
User agents must support representations at least 20 characters long,
357-
but they may choose to instead use the fallback style for representations that would be longer than 20 characters.
356+
User agents must support representations at least 60 Unicode codepoints long,
357+
but they may choose to instead use the fallback style for representations that would be longer than 60 codepoints.
358358

359359

360360
<h4 id="alphabetic-system">
@@ -557,8 +557,8 @@ Accumulating Numerals: the ''additive'' system</h4>
557557

558558
The ''additive'' system will produce representations with sizes that are linear in the magnitude of the counter value.
559559
This can potentially be abused to generate excessively large representations and consume undue amounts of the user's memory or even hang their browser.
560-
User agents must support representations at least 20 characters long,
561-
but they may choose to instead use the fallback style for representations that would be longer than 20 characters.
560+
User agents must support representations at least 60 Unicode codepoints long,
561+
but they may choose to instead use the fallback style for representations that would be longer than 60 codepoints.
562562

563563
Note: All of the predefined additive ''@counter-style'' rules in this specification
564564
produce representations for every value in their range,

css-counter-styles/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ <h4 class="heading settled heading" data-level=3.1.3 id=symbolic-system><span cl
486486
<p> The <a class=css data-link-type=maybe href=#valuedef-symbolic title=symbolic>symbolic</a> system will produce representations with sizes that are linear in the magnitude of the counter value.
487487
This can potentially be abused to generate excessively large representations
488488
and consume undue amounts of the user’s memory or even hang their browser.
489-
User agents must support representations at least 20 characters long,
490-
but they may choose to instead use the fallback style for representations that would be longer than 20 characters.
489+
User agents must support representations at least 60 Unicode codepoints long,
490+
but they may choose to instead use the fallback style for representations that would be longer than 60 codepoints.
491491

492492

493493
<h4 class="heading settled heading" data-level=3.1.4 id=alphabetic-system><span class=secno>3.1.4 </span><span class=content>
@@ -680,8 +680,8 @@ <h4 class="heading settled heading" data-level=3.1.6 id=additive-system><span cl
680680

681681
<p> The <a class=css data-link-type=maybe href=#valuedef-additive title=additive>additive</a> system will produce representations with sizes that are linear in the magnitude of the counter value.
682682
This can potentially be abused to generate excessively large representations and consume undue amounts of the user’s memory or even hang their browser.
683-
User agents must support representations at least 20 characters long,
684-
but they may choose to instead use the fallback style for representations that would be longer than 20 characters.
683+
User agents must support representations at least 60 Unicode codepoints long,
684+
but they may choose to instead use the fallback style for representations that would be longer than 60 codepoints.
685685

686686
<p class=note> Note: All of the predefined additive <a class=css data-link-type=maybe href=#at-ruledef-counter-style title=@counter-style>@counter-style</a> rules in this specification
687687
produce representations for every value in their range,

0 commit comments

Comments
 (0)