Support :is() and :where() CSS pseudo-classes

Discussions about the development and maturation of the platform code (UXP).
Warning: may contain highly-technical topics.

Moderators: trava90, athenian200

SemiKebab
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2021-05-30, 03:48

Support :is() and :where() CSS pseudo-classes

Unread post by SemiKebab » 2022-12-04, 11:44

Title says it all. You may want to support the :is() and :where() CSS pseudo-classes, which are already supported by all major browsers, except the now-defunct IE. I searched on the UXP issues but didn't find a ticket about them.

Note that contrarily to :not(), their parameter is a forgiving selector list.

User avatar
Nuck-TH
Project Contributor
Project Contributor
Posts: 128
Joined: 2020-03-02, 16:04

Re: Support :is() and :where() CSS pseudo-classes

Unread post by Nuck-TH » 2022-12-04, 12:30

Are there any particular reasons to prioritize this against currently known issues? "Google one day pushed one more shiny and Mozilla blindly followed" is not such reason.

User avatar
FranklinDM
Add-ons Team
Add-ons Team
Posts: 449
Joined: 2017-01-14, 02:40
Location: Philippines
Contact:

Re: Support :is() and :where() CSS pseudo-classes

Unread post by FranklinDM » 2022-12-04, 12:33

SemiKebab wrote:
2022-12-04, 11:44
You may want to support the :is() ...
On a side note, we do have partial support for this pseudo-class function in the form of :-moz-any, but it will have to be updated to conform to the new spec.

SemiKebab
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2021-05-30, 03:48

Re: Support :is() and :where() CSS pseudo-classes

Unread post by SemiKebab » 2022-12-04, 12:52

Nuck-TH wrote:
2022-12-04, 12:30
Are there any particular reasons to prioritize this against currently known issues? "Google one day pushed one more shiny and Mozilla blindly followed" is not such reason.
Not prioritizing in particular. Though, I think it's a great feature.

Post Reply