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 using your GitHub account

Sent via github-notify-ml as configured in

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