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
|`props.combinator?`|`string`| Rule combinator which was used to nest this rule (i.e. `">"` in case of `"div > span"` if the current rule is `"span"`). |
635
-
|`props.items`| ([`AstTagName`](AstTagName.md)\|[`AstWildcardTag`](AstWildcardTag.md)\|[`AstId`](AstId.md)\|[`AstClassName`](AstClassName.md)\|[`AstPseudoClass`](AstPseudoClass.md)\|[`AstAttribute`](AstAttribute.md)\|[`AstPseudoElement`](AstPseudoElement.md))[]| Items of a CSS rule. Can be tag, ids, class names, pseudo-classes and pseudo-elements. |
679
+
|`props.items`| ([`AstTagName`](AstTagName.md)\|[`AstWildcardTag`](AstWildcardTag.md)\|[`AstId`](AstId.md)\|[`AstClassName`](AstClassName.md)\|[`AstNestingSelector`](AstNestingSelector.md)\|[`AstPseudoClass`](AstPseudoClass.md)\|[`AstAttribute`](AstAttribute.md)\|[`AstPseudoElement`](AstPseudoElement.md))[]| Items of a CSS rule. Can be tag, ids, class names, pseudo-classes and pseudo-elements. |
636
680
|`props.nestedRule?`|[`AstRule`](AstRule.md)| Nested rule if specified (i.e. `"div > span"`). |
@@ -133,6 +155,7 @@ Creates a parse function to be used later to parse CSS selectors.
133
155
| Name | Type | Description |
134
156
| :------ | :------ | :------ |
135
157
|`options`|`Object`| - |
158
+
|`options.modules?`| (``"css-position-1"``\|``"css-position-2"``\|``"css-position-3"``\|``"css-position-4"``\|``"css-scoping-1"``\|``"css-pseudo-4"``\|``"css-shadow-parts-1"``\|``"css-nesting-1"``)[]| Additional CSS modules to include in the syntax definition. These are specific CSS modules that add new selectors or modify existing ones. **`Example`**```ts ['css-position-3', 'css-scoping-1'] ```|
136
159
|`options.strict?`|`boolean`| CSS selector parser in modern browsers is very forgiving. For instance, it works fine with unclosed attribute selectors: `"[attr=value"`. Set to `false` in order to mimic browser behaviour. Default: `true`|
137
160
|`options.substitutes?`|`boolean`| Flag to enable substitutes. This is not part of CSS syntax, but rather a useful feature to pass variables into CSS selectors. Default: `false`**`Example`**```ts "[attr=$variable]" ```|
138
161
|`options.syntax?`|[`CssLevel`](modules.md#csslevel)\|[`SyntaxDefinition`](interfaces/SyntaxDefinition.md)| CSS Syntax options to be used for parsing. Can either be one of the predefined CSS levels ([CssLevel](modules.md#csslevel)) or a more detailed syntax definition ([SyntaxDefinition](interfaces/SyntaxDefinition.md)). Default: `"latest"`|
0 commit comments