Re: [csswg-drafts] Updating the css `env()` function to enable selection by index from a list of pre-defined environment variables (#5622)

> (i.e. I don't think you could specify that viewport-segment-n-width is a variable that is potentially valid for all n)

We could certainly define that. The set of names isn't directly exposed anywhere, it's just a matter of the UA looking at the name and seeing if it's defined.

> say for use with var() assuming you could declare array-like variables

We could just as easily add to the `var()` grammar to allow `var(--foo 1)`. ^_^

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


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

Received on Thursday, 15 October 2020 19:33:16 UTC