- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Thu, 10 Mar 2022 21:27:11 +0000
- To: public-css-archive@w3.org
I have realized that making the property behave as `unset` is not forwards-compatible regarding shorthand expansion, unless we are willing to add some `var()`-like approach for `calc()`. Consider `background-position: calc(0px / 100% * 1px) 5px`, and assume that during layout the percentage resolves to `0px`, namely `background-position: calc(NaN * 1px) 5px`. Then we treat the entire property as `unset`, so it behaves as `0% 0%`, i.e. `0px 0px`. But at some point we may turn `background-position` into a shorthand of `background-position-{x,y}`. Then, at parse time the example would become `background-position-x: calc(0px / 100% * 1px); background-position-y: 5px`. And the behavior would end up like `background-position-x: 0px; background-position-y: 5px` -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7067#issuecomment-1064519807 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 10 March 2022 21:27:12 UTC