microsoft / vscode-css

CSS Textmate grammar for syntax highlighting
Other
17 stars 14 forks source link

Add support for :nth-child `of <selector>` support #13

Closed ghost closed 1 year ago

ghost commented 1 year ago

See https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child.#the_of_selector_syntax

Current state: of <selector> current rendering

romainmenke commented 1 year ago
.foo article:nth-child(1 of .not-hidden) {}
.foo article:nth-child(2 of .not-hidden) {}
.foo article:nth-child(3 of .not-hidden) {}
.foo article:nth-child(4 of .not-hidden) {}
.foo article:nth-child(n + 5 of .not-hidden) {}