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

fix: improve :where supports check #65

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

gkatsev
Copy link
Contributor

@gkatsev gkatsev commented Oct 25, 2022

Newer Firefox's have :where support but the specific check used returns false. Changing the check to be CSS.supports('selector(:where(div))') makes it return true in Firefox and makes the polyfill work there without needing the :where fallback.

Fixes #64

Newer Firefox's have :where support but the specific check used returns
false. Changing the check to be `CSS.supports('selector(:where(div))')`
makes it return `true` in Firefox and makes the polyfill work there
without needing the :where fallback.

Fixes GoogleChromeLabs#64
@lilles
Copy link
Collaborator

lilles commented Nov 2, 2022

Right, this is necessary because Firefox implemented the spec change to always parse selectors as non-forgiving per this resolution: w3c/csswg-drafts#7280 (comment)

@devknoll devknoll merged commit 1dab190 into GoogleChromeLabs:main Nov 3, 2022
@devknoll
Copy link
Collaborator

devknoll commented Nov 3, 2022

Thank you!

@gkatsev gkatsev deleted the firefox-where-support branch November 3, 2022 17:51
@gkatsev gkatsev mentioned this pull request Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

":where() pseudo class not supported" in firefox version that should support it.
3 participants