Skip to content

Commit

Permalink
fix(noUnknownPseudoClass): not error for pseudo class after webkit sc…
Browse files Browse the repository at this point in the history
…rollbar element (#4543)
  • Loading branch information
fireairforce authored Nov 15, 2024
1 parent 63b213b commit e936902
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,23 @@ our [guidelines for writing a good changelog entry](https://github.com/biomejs/b
### Bug fixes

- Fix [#4121](https://github.com/biomejs/biome/issues/4326), don't ident a CSS selector when has leading comments. Contributed by @fireairforce

- Fix [#4334](https://github.com/biomejs/biome/issues/4334), don't insert trailing comma on type import statement. Contributed by @fireairforce

- Fix [#3229](https://github.com/biomejs/biome/issues/3229), where Biome wasn't idempotent when block comments were placed inside compound selectors. Contributed by @ematipico

- Fix [#4026](https://github.com/biomejs/biome/issues/4026), don't move comments in `grid-template`. Contributed by @fireairforce

- Fix [#4533](URL_ADDRESS.com/biomejs/biome/issues/4533), don't throw error when pseudeo class after a webkit scrollbar pseudeo element.

The follow code will not report:

```css
::-webkit-scrollbar-thumb:hover {}
```

Contributed by @fireairforce

### JavaScript APIs

### Linter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ impl Rule for NoUnknownPseudoClass {
PseudoClassType::PagePseudoClass => is_page_pseudo_class(lower_name),
PseudoClassType::WebkitScrollbarPseudoClass => {
WEBKIT_SCROLLBAR_PSEUDO_CLASSES.contains(&lower_name)
|| is_known_pseudo_class(lower_name)
}
PseudoClassType::Other => {
is_custom_selector(lower_name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ html { --custom-property-set: {} }
a:defined { }
*:is(*) { }
:popover-open {}
:seeking, :stalled, :buffering, :volume-locked, :muted {}
:seeking, :stalled, :buffering, :volume-locked, :muted {}
::-webkit-scrollbar-button:hover {}
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ a:defined { }
*:is(*) { }
:popover-open {}
:seeking, :stalled, :buffering, :volume-locked, :muted {}
::-webkit-scrollbar-button:hover {}
```

0 comments on commit e936902

Please sign in to comment.