-
Notifications
You must be signed in to change notification settings - Fork 672
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
[css-conditional-3] Define <declaration>
#8795
Comments
I think I didn't understand the following sentence correctly:
So
|
This doesn't seem adequately addressed, to me. |
Right, sorry:
I was wrong because browsers accept
That said, This could be achieved by treating the result of matching |
@cdoublev do you have spec text suggestions to differentiate "accept" and "support", here? I just applied your earlier suggested clarification:
|
To clarify my previous comment, since it took me a few minutes to remember... If With So I propose to make I do not like making a grammar sensitive to browser support (which it already is with Style sheets <strong>must not</strong> use such a rule and
processors <strong>must</strong> ignore such a rule (including all of its contents).
+
+ If the UA does not [=support=] the declaration within the parentheses,
+ <<supports-decl>> is invalid. : <<supports-decl>>
::
- The result is true if the UA [=supports=] the declaration within the parentheses.
+ The result is true. If a processor does not implement, with a usable level of support,
both the property and the value given,
then it <strong>must not</strong>
- accept the declaration or claim support for it.
+ claim support for it. |
<declaration>
is only used in the prelude of@supports
:<supports-decl>
should evaluate totrue
if the UA supports the<declaration>
in a style rule.I would like to clarify if
unknown-property: var(--custom)
orcolor: invalid-value
match<declaration>
or<general-enclosed>
.In #8127, I proposed to define
<style-feature>
(in the prelude of@container
) with<declaration> | <ident>
but this seemed to be a problem for some people. It was preferred that<general-enclosed>
match the above inputs, to avoid storing an invalid declaration.The text was updated successfully, but these errors were encountered: