You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Component values can be arranged into property values as follows:</p>
319
319
320
-
<ul>
320
+
<uldata-export="">
321
321
<li>Juxtaposing components means that
322
322
all of them must occur, in the given order.
323
-
<li>A double ampersand (&&) separates two or more components,
323
+
<li>A double ampersand (<dfndata-dfn-type=dfndata-export="" id=comb-all>&&<aclass=self-linkhref=#comb-all></a></dfn>) separates two or more components,
324
324
all of which must occur, in any order.
325
-
<li>A double bar (||) separates two or more options:
325
+
<li>A double bar (<dfndata-dfn-type=dfndata-export="" id=comb-any>||<aclass=self-linkhref=#comb-any></a></dfn>) separates two or more options:
326
326
one or more of them must occur, in any order.
327
-
<li>A bar (|) separates two or more alternatives:
327
+
<li>A bar (<dfndata-dfn-type=dfndata-export="" id=comb-one>|<aclass=self-linkhref=#comb-one></a></dfn>) separates two or more alternatives:
<p>Every type, keyword, or bracketed group may be followed by one of
353
353
the following modifiers:</p>
354
354
355
-
<ul>
356
-
<li>An asterisk (*) indicates that the preceding type, word, or
355
+
<uldata-export="">
356
+
<li>An asterisk (<dfndata-dfn-type=dfndata-export="" id=mult-zero-plus>*<aclass=self-linkhref=#mult-zero-plus></a></dfn>) indicates that the preceding type, word, or
357
357
group occurs zero or more times.
358
358
359
-
<li>A plus (+) indicates that the preceding type, word, or group
359
+
<li>A plus (<dfndata-dfn-type=dfndata-export="" id=mult-one-plus>+<aclass=self-linkhref=#mult-one-plus></a></dfn>) indicates that the preceding type, word, or group
360
360
occurs one or more times.
361
361
362
-
<li>A question mark (?) indicates that the preceding type, word, or
362
+
<li>A question mark (<dfndata-dfn-type=dfndata-export="" id=mult-opt>?<aclass=self-linkhref=#mult-opt></a></dfn>) indicates that the preceding type, word, or
363
363
group is optional (occurs zero or one times).
364
364
365
-
<li>A single number in curly braces ({<var>A</var>})
365
+
<li>A single number in curly braces (<dfndata-dfn-type=dfndata-export="" id=mult-num>{<var>A</var>}<aclass=self-linkhref=#mult-num></a></dfn>)
366
366
indicates that the preceding type, word, or group occurs <var>A</var> times.
367
367
368
-
<li>A comma-separated pair of numbers in curly braces ({<var>A</var>,<var>B</var>})
368
+
<li>A comma-separated pair of numbers in curly braces (<dfndata-dfn-type=dfndata-export="" id=mult-num-range>{<var>A</var>,<var>B</var>}<aclass=self-linkhref=#mult-num-range></a></dfn>)
369
369
indicates that the preceding type, word, or group occurs at least
370
370
<var>A</var> and at most <var>B</var> times.
371
371
The <var>B</var> may be omitted ({<var>A</var>,})
372
372
to indicate that there must be at least <var>A</var> repetitions,
373
373
with no upper bound on the number of repetitions.
374
374
375
-
<li>A hash mark (#) indicates that the preceding type, word, or
375
+
<li>A hash mark (<dfndata-dfn-type=dfndata-export="" id=mult-comma>#<aclass=self-linkhref=#mult-comma></a></dfn>) indicates that the preceding type, word, or
376
376
group occurs one or more times, separated by comma tokens
377
377
(which may optionally be surrounded by white space and/or comments).
378
378
It may optionally be followed by the curly brace forms, above,
379
379
to indicate precisely how many times the repetition occurs,
380
380
like <spanclass=cssdata-link-type=maybetitle="<length>#{1,4}"><length>#{1,4}</span>.
381
381
382
-
<li>An exclamation point (!) after a group indicates that the group must produce at least one value;
382
+
<li>An exclamation point (<dfndata-dfn-type=dfndata-export="" id=mult-req>!<aclass=self-linkhref=#mult-req></a></dfn>) after a group indicates that the group is required
383
+
and must produce at least one value;
383
384
even if the grammar of the items within the group would otherwise allow the entire contents to be omitted,
384
385
at least one component value must not be omitted.
385
386
</ul>
386
387
387
-
<p>For repeated component values (indicated by <spanclass=cssdata-link-type=maybetitle=*>*</span>, <spanclass=cssdata-link-type=maybetitle=+>+</span>, or <spanclass=cssdata-link-type=maybetitle=#>#</span>),
388
+
<p>For repeated component values (indicated by <aclass=cssdata-link-type=maybehref=#mult-zero-plustitle=*>*</a>, <aclass=cssdata-link-type=maybehref=#mult-one-plustitle=+>+</a>, or <aclass=cssdata-link-type=maybehref=#mult-commatitle=#>#</a>),
388
389
UAs must support at least 20 repetitions of the component.
389
390
If a property value contains more than the supported number of repetitions,
390
391
the declaration must be ignored as if it were invalid.</p>
An <dfndata-dfn-type=dfndata-noexport="" id=integer>integer<aclass=self-linkhref=#integer></a></dfn> is one or more decimal digits <spanclass=cssdata-link-type=maybetitle=0>0</span> through <spanclass=cssdata-link-type=maybetitle=9>9</span>
684
685
and corresponds to a subset of the <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-syntax-3/#typedef-number-tokentitle="<number-token>"><number-token></a> production
685
686
in the <ahref=http://www.w3.org/TR/css-syntax/>CSS Syntax Module</a><adata-biblio-type=normativedata-link-type=bibliohref=#biblio-css3syntitle=biblio-css3syn>[CSS3SYN]</a>.
686
-
The first digit of an integer may be immediately preceded by <spanclass=cssdata-link-type=maybetitle=->-</span> or <spanclass=cssdata-link-type=maybetitle=+>+</span>
687
+
The first digit of an integer may be immediately preceded by <spanclass=cssdata-link-type=maybetitle=->-</span> or <aclass=cssdata-link-type=maybehref=#mult-one-plustitle=+>+</a>
or zero or more decimal digits followed by a dot (.) followed by one or more decimal digits.
695
696
It corresponds to the <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-syntax-3/#typedef-number-tokentitle="<number-token>"><number-token></a> production
696
697
in the <ahref=http://www.w3.org/TR/css-syntax/>CSS Syntax Module</a><adata-biblio-type=normativedata-link-type=bibliohref=#biblio-css3syntitle=biblio-css3syn>[CSS3SYN]</a>.
697
-
As with integers, the first character of a number may be immediately preceded by <spanclass=cssdata-link-type=maybetitle=->-</span> or <spanclass=cssdata-link-type=maybetitle=+>+</span>
698
+
As with integers, the first character of a number may be immediately preceded by <spanclass=cssdata-link-type=maybetitle=->-</span> or <aclass=cssdata-link-type=maybehref=#mult-one-plustitle=+>+</a>
<p>The <dfnclass=css-codedata-dfn-type=functiondata-export="" id=funcdef-calc>calc()<aclass=self-linkhref=#funcdef-calc></a></dfn> function allows mathematical expressions
1170
-
with addition (<spanclass=cssdata-link-type=maybetitle=+>+</span>), subtraction (<spanclass=cssdata-link-type=maybetitle=->-</span>), multiplication (<spanclass=cssdata-link-type=maybetitle=*>*</span>), and division (<spanclass=cssdata-link-type=maybetitle=/>/</span>)
1171
+
with addition (<aclass=cssdata-link-type=maybehref=#mult-one-plustitle=+>+</a>), subtraction (<spanclass=cssdata-link-type=maybetitle=->-</span>), multiplication (<aclass=cssdata-link-type=maybehref=#mult-zero-plustitle=*>*</a>), and division (<spanclass=cssdata-link-type=maybetitle=/>/</span>)
1171
1172
to be used as component values.
1172
1173
The <aclass=cssdata-link-type=maybehref=#funcdef-calctitle=calc()>calc()</a> expression represents the result of the mathematical calculation it contains,
<pdata-noexport="">Where a <dfnclass=css-codedata-dfn-type=typedata-noexport="" id=typedef-dimension><dimension><aclass=self-linkhref=#typedef-dimension></a></dfn> is a <adata-link-type=dfnhref=#dimensiontitle=dimension>dimension</a>.
1252
1253
1253
-
<p>In addition, whitespace is required on both sides of the <spanclass=cssdata-link-type=maybetitle=+>+</span> and <spanclass=cssdata-link-type=maybetitle=->-</span> operators.
1254
-
(The <spanclass=cssdata-link-type=maybetitle=*>*</span> and <spanclass=cssdata-link-type=maybetitle=/>/</span> operaters can be used without whitespace around them.)</p>
1254
+
<p>In addition, whitespace is required on both sides of the <aclass=cssdata-link-type=maybehref=#mult-one-plustitle=+>+</a> and <spanclass=cssdata-link-type=maybetitle=->-</span> operators.
1255
+
(The <aclass=cssdata-link-type=maybehref=#mult-zero-plustitle=*>*</a> and <spanclass=cssdata-link-type=maybetitle=/>/</span> operaters can be used without whitespace around them.)</p>
1255
1256
1256
1257
<p>UAs must support <aclass=cssdata-link-type=maybehref=#funcdef-calctitle=calc()>calc()</a> expressions of at least 20 terms,
1257
1258
where each <code>NUMBER</code>, <code>DIMENSION</code>, or <code>PERCENTAGE</code> is a term.
At <spanclass=cssdata-link-type=maybetitle=+>+</span> or <spanclass=cssdata-link-type=maybetitle=->-</span>,
1295
+
At <aclass=cssdata-link-type=maybehref=#mult-one-plustitle=+>+</a> or <spanclass=cssdata-link-type=maybetitle=->-</span>,
1295
1296
check that both sides have the same type,
1296
1297
or that one side is a <aclass="production css-code" data-link-type=typehref=#number-valuetitle="<number>"><number></a> and the other is an <aclass="production css-code" data-link-type=typehref=#integer-valuetitle="<integer>"><integer></a>.
0 commit comments