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

Way of testing at-rules cannot cover extensions to @supports #186

Open
SebastianZ opened this issue Aug 23, 2019 · 0 comments
Open

Way of testing at-rules cannot cover extensions to @supports #186

SebastianZ opened this issue Aug 23, 2019 · 0 comments
Labels

Comments

@SebastianZ
Copy link
Collaborator

@supports has a very loose syntax. The specification says this:

The above grammar is purposely very loose for forwards-compatibility reasons, since the <general-enclosed> production allows for substantial future extensibility.

A user agent compliant to the spec. will also parse an @supports rule like this one:

@supports foo(bar) { }

For basic support of that rule it may be sufficient to test whether the syntax is parsed correctly, but Conditional Rules 4 added support for selector().

So to check whether a browser actually supports this new selector() feature, it needs to be checked using CSS.supports(). A browser that supports it will output true for CSS.supports('selector(span)') while one that doesn't outputs false.

Sebastian

@SebastianZ SebastianZ added the bug label Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant