feat(css): add support for modern CSS properties, pseudo-classes, and pseudo-elements#9490
Conversation
…udo elements Signed-off-by: will Farrell <willfarrell@proton.me>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 264a0e5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (5)
WalkthroughThis PR extends CSS language support by introducing modern CSS keywords across properties, pseudo-elements, and pseudo-classes. It adds six new known properties (dynamic-range-limit, overlay, reading-flow, reading-order, scroll-marker-group, scroll-target-group), seven new pseudo-elements (including ::checkmark, ::picker, ::scroll-marker variants), and five new pseudo-classes (:has-slotted, :target-before, :target-after, :target-current, :active-view-transition-type). The keywords registry is updated alongside corresponding test files to validate these constructs. Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can use OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.OpenGrep is compatible with Semgrep configurations. Add an |
…iome into feature/modern-css
|
It seems that not all tests were run. @willfarrell can you please look after it? CI is failing |
Merging this PR will not alter performance
Comparing Footnotes
|
Signed-off-by: will Farrell <willfarrell@proton.me>
|
Pushed an update, will watch for pass |
|
We're all good :) |
Summary
Added modern CSS keywords to the noUnknownProperty, noUnknownPseudoClass, and noUnknownPseudoElement lint rules so they no longer produce false positives for recently standardized or in-progress CSS features.
New known properties: dynamic-range-limit, overlay, reading-flow, reading-order, scroll-marker-group, scroll-target-group.
New pseudo-elements: ::checkmark, ::column, ::picker, ::picker-icon, ::scroll-button, ::scroll-marker, ::scroll-marker-group.
New pseudo-classes: :active-view-transition-type, :has-slotted, :target-after, :target-before, :target-current.
Test Plan
Docs
No external documentation changes needed, the keywords are internal to the existing lint rules.
Refs
New pseudo-elements
::checkmark::column::picker()::picker-icon::scroll-button()::scroll-marker::scroll-marker-groupNew pseudo-classes
:active-view-transition-type():has-slotted:target-current:target-before:target-afterNew properties
dynamic-range-limitoverlayreading-flowreading-orderscroll-marker-groupscroll-target-group