W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2020

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

From: Bramus! via GitHub <sysbot+gh@w3.org>
Date: Mon, 28 Dec 2020 07:53:09 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-751620493-1609141988-sysbot+gh@w3.org>
@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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:24 UTC