Re: [csswg-drafts] [css-properties-values-api] A compact syntax for registering global constants/custom properties (#9206)

> @mirisuzanne so to make sure I understand: `env(<custom-ident>)` would resolve based on the regular custom properties defined ONLY in `::global` rules? And these regular custom properties would be usable via `var()` as well, with `::global` sitting above `:root` in the inheritance chain?

To clarify this a bit more: I would have `env(<custom-ident>)` resolve based on the regular custom properties _as defined in the global rule only_. Env would always return the global value of the property. But I would not have a restriction that those custom properties remain constant throughout the cascade. Custom properties could get different contextual values accessible to `var()`, and that would have no impact on their global value or access via `env()`. 

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


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

Received on Wednesday, 23 August 2023 16:13:34 UTC