-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure
@custom-variant foo ()
has a non-empty selector list (#16009)
This PR fixes an issue where an empty selector list was valid when defining a `@custom-variant`. Given this input: ```css @custom-variant foo (); ``` If you then use it with a utility such as `foo:flex`, then the following (incorrect) CSS was generated: ```css .foo\:flex { { display: flex; } } ``` Which is invalid CSS. This PR will now validate that that we have at least _something_ and show an error accordingly.
- Loading branch information
1 parent
965048c
commit 924dd69
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters