[csswg-drafts] [css-syntax-3] Restrict validity of substitution values and math functions (#8717)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax-3] Restrict validity of substitution values and math functions ==
In Chrome/FF, `calc(100% / 3) {}` is an invalid CSS keyframe.

However in [CSS Syntax](https://drafts.csswg.org/css-syntax-3/#rule-defs):

  > *CSS Values 4 ยง 2 Value Definition Syntax* defines how to specify a grammar for properties. This section extends those definitions to also allow specifying a grammar for rules.

Substitution values (`attr()`, `mix()`, `random-*()`, `toggle()`) and math functions may have to be restricted here.

In my opinion, substitution values should be invalid, except as a declaration value for a feature query in `@supports`, and math functions should only be valid in a declaration value.

Related: #7838.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8717 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 14 April 2023 08:42:14 UTC