Skip to content

Commit

Permalink
fix: support for :has() pseudo-class in CSS parser (#13779)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanisml committed Oct 23, 2024
1 parent d16a9da commit ee1bb14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/svelte/src/compiler/types/css.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ export namespace Css {
export interface PseudoClassSelector extends BaseNode {
type: 'PseudoClassSelector';
name: string;
args: SelectorList | null;
/**
* The arguments to the pseudo-class, which can be a SelectorList (e.g. for :has(), :is(), :not(), etc.)
* or can be null for simple pseudo-classes like :hover or :focus
*/
args: SelectorList | ComplexSelector | SimpleSelector | null;
}

export interface Percentage extends BaseNode {
Expand Down

0 comments on commit ee1bb14

Please sign in to comment.