- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Thu, 04 Apr 2024 04:09:42 +0000
- To: public-css-archive@w3.org
Currently, replacing `<mf-value>` with `var()` in a [container size query](https://drafts.csswg.org/css-contain-3/#container-size-query) is only mentioned in a non-normative example. And the syntax does not allow it at the moment. It requires a valid CSS numeric type according to the feature value definition. In [CSS Variables](https://drafts.csswg.org/css-variables-2/#using-variables): > The value of a custom property can be substituted into the value of another property with the `var()` function. But [`<mf-name>`](https://drafts.csswg.org/mediaqueries-5/#typedef-mf-name) may be considered a descriptor, at best, not as a property. Is `@container (var(--property) > 1px) {}` valid? Should `var()`-substitution be restricted to `<mf-value>`? Do you plan to allow other substitution functions, like `env()` or `attr()`? -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8088#issuecomment-2036147636 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 4 April 2024 04:09:43 UTC