Skip to content

Commit 82cfd95

Browse files
committed
Add instructions for handling too-long things to all the min-length specifiers.
1 parent 172d953 commit 82cfd95

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

css3-values/Overview.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@ <h3 id=component-multipliers><span class=secno>2.3. </span> Component value
415415
<p>For repeated component values (indicated by &lsquo;<code
416416
class=css>*</code>&rsquo;, &lsquo;<code class=css>+</code>&rsquo;, or
417417
&lsquo;<code class=css>#</code>&rsquo;), UAs must support at least 30
418-
repetitions of the component.
418+
repetitions of the component. If a property value contains more than the
419+
supported number of repetitions, the declaration must be ignored as if it
420+
were invalid.
419421

420422
<h3 id=component-whitespace><span class=secno>2.4. </span> Component values
421423
and white space</h3>
@@ -727,7 +729,8 @@ <h3 id=integers><span class=secno>4.1. </span> Integers: the &lsquo;<a
727729
<p>Properties may restrict the integer value to some range. If the value is
728730
outside the allowed range, the declaration is invalid and must be <a
729731
href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>. For
730-
unrestricted values, UAs must support at least up to ±2<sup>30</sup>.
732+
unrestricted values, UAs must support at least up to ±2<sup>30</sup>;
733+
unsupported values must be clamped to the closest supported value.
731734

732735
<h3 id=numbers><span class=secno>4.2. </span> Numbers: the &lsquo;<a
733736
href="#number-value"><code class=css>&lt;number&gt;</code></a>&rsquo; type</h3>
@@ -746,7 +749,8 @@ <h3 id=numbers><span class=secno>4.2. </span> Numbers: the &lsquo;<a
746749
<p>Properties may restrict the number value to some range. If the value is
747750
outside the allowed range, the declaration is invalid and must be <a
748751
href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>. For
749-
unrestricted values, UAs must support at least up to ±2<sup>30.</sup>
752+
unrestricted values, UAs must support at least up to ±2<sup>30;
753+
unsupported values must be clamped to the closest supported value.</sup>
750754

751755
<h3 id=percentages><span class=secno>4.3. </span> Percentages: the
752756
&lsquo;<a href="#percentage-value"><code
@@ -772,7 +776,8 @@ <h3 id=percentages><span class=secno>4.3. </span> Percentages: the
772776
<p>Properties may restrict the percentage value to some range. If the value
773777
is outside the allowed range, the declaration is invalid and must be <a
774778
href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>. For
775-
unrestricted values, UAs must support at least up to ±2<sup>30%.</sup>
779+
unrestricted values, UAs must support at least up to ±2<sup>30%;
780+
unsupported values must be clamped to the closest supported value.</sup>
776781

777782
<h2 id=lengths><span class=secno>5. </span> Distance Units: the &lsquo;<a
778783
href="#length-value"><code class=css>&lt;length&gt;</code></a>&rsquo; type</h2>
@@ -1401,7 +1406,10 @@ <h3 id=calc><span class=secno>8.1. </span> Mathematical Expressions:
14011406
each &lsquo;<a href="#number"><code class=css>number</code></a>&rsquo;,
14021407
&lsquo;<a href="#dimension"><code class=css>dimension</code></a>&rsquo;,
14031408
or &lsquo;<a href="#percentage"><code
1404-
class=css>percentage</code></a>&rsquo; is a term.
1409+
class=css>percentage</code></a>&rsquo; is a term. If a &lsquo;<a
1410+
href="#calc0"><code class=css>calc()</code></a>&rsquo; expression contains
1411+
more than the supported number of terms, it must be treated as if it were
1412+
invalid.
14051413

14061414
<h3 id=cycle><span class=secno>8.2. </span> Cycling Values: &lsquo;<a
14071415
href="#cycle-value"><code class=css>cycle()</code></a>&rsquo;</h3>

css3-values/Overview.src.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ <h3 id="component-multipliers">
192192
group occurs one or more times, separated by comma tokens.
193193
</ul>
194194

195-
<p>For repeated component values (indicated by ''*'', ''+'', or ''#''), UAs must support at least 30 repetitions of the component.</p>
195+
<p>For repeated component values (indicated by ''*'', ''+'', or ''#''), UAs must support at least 30 repetitions of the component. If a property value contains more than the supported number of repetitions, the declaration must be ignored as if it were invalid.</p>
196196

197197
<h3 id="component-whitespace">
198198
Component values and white space</h3>
@@ -426,7 +426,7 @@ <h3 id="integers">
426426
<p>Properties may restrict the integer value to some range.
427427
If the value is outside the allowed range, the declaration is invalid
428428
and must be <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
429-
For unrestricted values, UAs must support at least up to ±2<sup>30</sup>.</p>
429+
For unrestricted values, UAs must support at least up to ±2<sup>30</sup>; unsupported values must be clamped to the closest supported value.</p>
430430

431431
<h3 id="numbers">
432432
Numbers: the ''&lt;number&gt;'' type</h3>
@@ -443,7 +443,7 @@ <h3 id="numbers">
443443
<p>Properties may restrict the number value to some range.
444444
If the value is outside the allowed range, the declaration is invalid
445445
and must be <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
446-
For unrestricted values, UAs must support at least up to ±2<sup>30</h3>.</p>
446+
For unrestricted values, UAs must support at least up to ±2<sup>30</h3>; unsupported values must be clamped to the closest supported value.</p>
447447

448448
<h3 id="percentages">
449449
Percentages: the ''&lt;percentage&gt;'' type</h3>
@@ -467,7 +467,7 @@ <h3 id="percentages">
467467
<p>Properties may restrict the percentage value to some range.
468468
If the value is outside the allowed range, the declaration is invalid
469469
and must be <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignored</a>.
470-
For unrestricted values, UAs must support at least up to ±2<sup>30</h3>%.</p>
470+
For unrestricted values, UAs must support at least up to ±2<sup>30</h3>%; unsupported values must be clamped to the closest supported value.</p>
471471

472472
<h2 id="lengths">
473473
Distance Units: the ''&lt;length&gt;'' type</h2>
@@ -968,7 +968,7 @@ <h3 id="calc">
968968
and table cells in both auto and fixed layout tables MAY be treated as if
969969
'auto' had been specified.</p>
970970

971-
<p>UAs must support ''calc()'' expressions of at least 30 terms, where each ''number'', ''dimension'', or ''percentage'' is a term.</p>
971+
<p>UAs must support ''calc()'' expressions of at least 30 terms, where each ''number'', ''dimension'', or ''percentage'' is a term. If a ''calc()'' expression contains more than the supported number of terms, it must be treated as if it were invalid.</p>
972972

973973
<h3 id="cycle">
974974
Cycling Values: ''cycle()''</h3>

0 commit comments

Comments
 (0)