- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Fri, 02 Dec 2022 17:23:32 +0000
- To: public-houdini-archive@w3.org
Loirooriol has just created a new issue for https://github.com/w3c/css-houdini-drafts: == Dependency Cycles via Relative Units with unit algebra == #315 was fixed without considering "unit algebra". CSS Values 4 allows dividing by dimensions, so we may have ```css @property --my-font-size { syntax: "<number>"; inherits: false; initial-value: 0; } div { --my-font-size: calc(10em / 1px); font-size: calc(var(--my-font-size) * 1px); } ``` That's a dependency cycle! It's not addressed by https://drafts.css-houdini.org/css-properties-values-api/#dependency-cycles, since that only handles registered properties with a syntax of `<length>` or `<length-percentage>`. The example above uses `<number>`, but other dimensions like `<angle>` are also affected: ```css --my-font-size: calc(10em / 1px * 1deg); font-size: calc(var(--my-font-size) / 1deg * 1px); ``` CC @tabatkins Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1080 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 2 December 2022 17:23:34 UTC