Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(biome_css_analyzer): update known pseudo elements #5118

Merged
merged 9 commits into from
Feb 21, 2025
4 changes: 2 additions & 2 deletions crates/biome_css_analyze/src/keywords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,8 @@ pub const FUNCTION_KEYWORDS: [&str; 685] = [
];

// These are the ones that can have single-colon notation
pub const LEVEL_ONE_AND_TWO_PSEUDO_ELEMENTS: [&str; 4] =
["after", "before", "first-letter", "first-line"];
pub const LEVEL_ONE_AND_TWO_PSEUDO_ELEMENTS: [&str; 5] =
["after", "before", "first-letter", "first-line", "slotted"];

pub const VENDOR_SPECIFIC_PSEUDO_ELEMENTS: [&str; 66] = [
"-moz-focus-inner",
Expand Down
10 changes: 10 additions & 0 deletions packages/@biomejs/biome/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# @biomejs/biome

## Unreleased

### Linter

#### Bug fixes

- [noUnknownPseudoElement](https://biomejs.dev/linter/rules/no-unknown-pseudo-element/) add support for `::slotted` ([#5116](https://github.com/biomejs/biome/issues/5116)).

Contributed by @Th3S4mur41
Loading