Skip to content

Commit ebc1616

Browse files
committed
[css-syntax] Whitespace is ignored in <An+B>, unless specified otherwise.
1 parent ad0d0e5 commit ebc1616

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

css-syntax/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2579,7 +2579,7 @@ The <var>An+B</var> microsyntax</h2>
25792579
allowing an author to easily indicate single elements
25802580
or all elements at regularly-spaced intervals in a list.
25812581

2582-
The <dfn>An+B</dfn> notation defines an integer step (<dfn>A</dfn>) and offset (<dfn>B</dfn>),
2582+
The <dfn export>An+B</dfn> notation defines an integer step (<dfn>A</dfn>) and offset (<dfn>B</dfn>),
25832583
and represents the <var>An+B</var>th elements in a list,
25842584
for every positive integer or zero value of <var>n</var>,
25852585
with the first element in the list having index 1 (not 0).
@@ -2743,6 +2743,7 @@ The <code>&lt;an+b></code> type</h3>
27432743
<sup></sup>: When a plus sign (+) precedes an ident starting with "n", as in the cases marked above,
27442744
there must be no whitespace between the two tokens,
27452745
or else the tokens do not match the above grammar.
2746+
Whitespace is valid (and ignored) between any other two tokens.
27462747

27472748
The clauses of the production are interpreted as follows:
27482749

css-syntax/Overview.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4092,7 +4092,7 @@ <h2 class="heading settled heading" data-level=6 id=anb><span class=secno>6 </sp
40924092
allowing an author to easily indicate single elements
40934093
or all elements at regularly-spaced intervals in a list.
40944094

4095-
<p> The <dfn data-dfn-type=dfn data-noexport="" id=anb0>An+B<a class=self-link href=#anb0></a></dfn> notation defines an integer step (<dfn data-dfn-type=dfn data-noexport="" id=a>A<a class=self-link href=#a></a></dfn>) and offset (<dfn data-dfn-type=dfn data-noexport="" id=b>B<a class=self-link href=#b></a></dfn>),
4095+
<p> The <dfn data-dfn-type=dfn data-export="" id=anb0>An+B<a class=self-link href=#anb0></a></dfn> notation defines an integer step (<dfn data-dfn-type=dfn data-noexport="" id=a>A<a class=self-link href=#a></a></dfn>) and offset (<dfn data-dfn-type=dfn data-noexport="" id=b>B<a class=self-link href=#b></a></dfn>),
40964096
and represents the <var>An+B</var>th elements in a list,
40974097
for every positive integer or zero value of <var>n</var>,
40984098
with the first element in the list having index 1 (not 0).
@@ -4238,6 +4238,7 @@ <h3 class="heading settled heading" data-level=6.2 id=the-anb-type><span class=s
42384238
<sup></sup>: When a plus sign (+) precedes an ident starting with "n", as in the cases marked above,
42394239
there must be no whitespace between the two tokens,
42404240
or else the tokens do not match the above grammar.
4241+
Whitespace is valid (and ignored) between any other two tokens.
42414242

42424243
<p> The clauses of the production are interpreted as follows:
42434244

0 commit comments

Comments
 (0)