-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CSS] Relaxed Nesting Support (#3898)
* [CSS] Relaxed Nesting This commit implements relaxed syntax for nested style rules according to https://www.w3.org/TR/css-nesting-1/#nested-style-rule. In general it means, nested selectors of nested style rules no longer need to start with `&` operator to denote html tags. The implementation adopts `properties-or-selectors` context from Less syntax to achieve reliable distinction between declarations and selectors without loosing support for interpolation. * [CSS] Rename style-block to avoid confusion This commit renames `style-block` contexts to `stylesheet-block` in order to avoid confusion with official syntax specs, because a `style-block` is actually what is represented by `property-lists` contexts in this syntax definition. A stylesheet block's content is however equal to top-level content, which does not support declarations (property-value pairs). * [CSS] Fix ASP/PHP/... interpolation * [CSS] Tiny optimization
- Loading branch information
Showing
2 changed files
with
61 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters