The current style rule is the CSS style rule that was created by the innermost execution of a style rule.
To execute a style rule rule:
-
Let
selectorbe the result of evaluating all interpolation inrule's selector and parsing the result as a selector list. -
If there is a current style rule:
-
If
selectorcontains one or more parent selectors, replace them with the current style rule's selector and setselectorto the result. -
Otherwise, nest
selectorwithin the current style rule's selector using the descendant combinator and setselectorto the result.
-
-
Otherwise, if
selectorcontains one or more parent selectors, throw an error. -
Let
cssbe a CSS style rule with selectorselector. -
Execute each child
childofrule. -
Remove any complex selectors containing a placeholder selector that begins with
-or_fromcss's selector. -
Unless
css's selector is now empty, appendcssto the current module's CSS.