W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2021

Re: [csswg-drafts] [css-variables-1] Please clarify in the Intro about custom properties *cascading* (#2451)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Tue, 27 Jul 2021 21:27:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-887846780-1627421261-sysbot+gh@w3.org>
I don't think this is unclear in the intro, and the correction doesn't help (and possibly makes it worse) - it suggests that there are *non-*cascaded uses of a variable.

The cascade is intrinsic to the "use" of a variable here; using a `var(--foo)` on an element without a connection to any `--foo` property is the same as using a JS variable in one function that's only defined in an unrelated function.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 27 July 2021 21:27:44 UTC

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