Re: [csswg-drafts] [css-variables?] Higher level custom properties that control multiple declarations (#5624)

That should be possible, provided that we can define what the operators mean and how things should evaluate. For example, in `1vw > 1em` both sides might resolve to pixels, but for `--x > 1em` the left hand side resolves to a token sequence, the right hand side to pixels, so we'd need rules for how all of that should work. (In this case maybe `@property` is needed to make `--x > 1em` allowed)?

> It would be nice if people can compare values of entire expressions

Mostly a matter of specifying the grammar + rules I think. Totally possible.

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


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

Received on Thursday, 27 May 2021 13:01:20 UTC