Skip to content

Commit 73825d0

Browse files
committed
[css3-syntax] Expand the list of 2.1 core grammar changes.
1 parent 6bab6df commit 73825d0

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

css3-syntax/Overview.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3707,9 +3707,29 @@ <h3 id=changes-from-css-2.1-core-grammar><span class=secno>5.13. </span>
37073707
with some reasonable behavior shown by at least one browser. Previously,
37083708
stylesheets with those tokens in those places just didn't match the
37093709
stylesheet grammar at all, so their handling was totally undefined.
3710+
Specifically:
3711+
<ul>
3712+
<li> [] blocks, () blocks and functions can now contain {} blocks,
3713+
at-keywords or semicolons
3714+
3715+
<li> Property values, functions and all blocks can now contain cdo and
3716+
cdc
3717+
3718+
<li> Selectors can now contain semicolons
3719+
3720+
<li> Selectors and at-rule predules can now contain cdo, cdc and
3721+
at-keywords
3722+
3723+
<li> Anything can contain an unmatched } ] or )
3724+
</ul>
37103725

37113726
<li> Quirks mode parsing differences are now officially recognized in the
37123727
parser.
3728+
3729+
<li> Selectors are no longer optional in rulesets a.k.a. style rules.
3730+
(Although an empty selector is invalid per css3-selectors, it does not
3731+
make ruleset invalid per the core grammar.)
3732+
<p class=issue> Do we want this? It's trivial to make it work.
37133733
</ol>
37143734

37153735
<h2 id=parser-entry-points><span class=secno>6. </span> Parser Entry Points</h2>

css3-syntax/Overview.src.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3187,9 +3187,36 @@ <h3>
31873187
has been specified with some reasonable behavior shown by at least one browser.
31883188
Previously, stylesheets with those tokens in those places just didn't match the stylesheet grammar at all,
31893189
so their handling was totally undefined.
3190+
Specifically:
3191+
3192+
<ul>
3193+
<li>
3194+
[] blocks, () blocks and functions can now contain {} blocks, at-keywords or semicolons
3195+
3196+
<li>
3197+
Property values, functions and all blocks can now contain cdo and cdc
3198+
3199+
<li>
3200+
Selectors can now contain semicolons
3201+
3202+
<li>
3203+
Selectors and at-rule predules can now contain cdo, cdc and at-keywords
3204+
3205+
<li>
3206+
Anything can contain an unmatched } ] or )
3207+
</ul>
31903208

31913209
<li>
31923210
Quirks mode parsing differences are now officially recognized in the parser.
3211+
3212+
<li>
3213+
Selectors are no longer optional in rulesets a.k.a. style rules.
3214+
(Although an empty selector is invalid per css3-selectors,
3215+
it does not make ruleset invalid per the core grammar.)
3216+
3217+
<p class='issue'>
3218+
Do we want this?
3219+
It's trivial to make it work.
31933220
</ol>
31943221

31953222

0 commit comments

Comments
 (0)