Re: [csswg-drafts] [css-variables-1][css-values-5] Define "arbitrary substitution function" (#10679)

  > Arbitrary substitution functions can be used in place of any part of a value in any property on an element.

UAs (at least Chrome and FF) already accept `var()` and `env()` in descriptors of page and margin rules, including `size`, ie. a descriptor whose name and grammar do not match those of a property.

I suggest that:

  - `<env()>`, `<first-valid()>`, should be valid for all declarations
  - `<var()>` should be valid for all declarations in element and cascade-dependent contexts
  - `<attr()>`, `<random-item()>`, should be valid in element-dependent contexts

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10679#issuecomment-2266364116 using your GitHub account


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

Received on Saturday, 3 August 2024 04:14:26 UTC