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

@isiahmeadows `font-size: if(var(--foo) > 2em, 2em, 1.5em)` won't create a cycle between "regular" properties, as the  `font-size` property is pointing to the custom property `--foo`.

It is possible that `var(--foo)` itself causes a cycle, but that's of no issue. Quoting @tabatkins in #3455 here again:

> Custom properties can arbitrarily refer to each other […] and have a somewhat reasonable "just become invalid" behavior when we notice a cycle.

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


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

Received on Monday, 28 December 2020 07:53:10 UTC