- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Sat, 14 Oct 2023 23:01:35 +0000
- To: public-css-archive@w3.org
Note that `border-radius` can be something like `1px 2px 3px 4px / 5px 6px 7px 8px`. What would `calc()` do with that, invalid at computed-value time? What authors would probably want would be closer to ```css border-radius: calc(inherit(border-top-left-radius-x) - inherit(padding-left) - inherit(border-left-width) - var(margin-left) calc(inherit(border-top-right-radius-x) - inherit(padding-right) - inherit(border-right-width) - var(margin-right) calc(inherit(border-bottom-right-radius-x) - inherit(padding-right) - inherit(border-right-width) - var(margin-right) calc(inherit(border-bottom-left-radius-x) - inherit(padding-left) - inherit(border-left-width) - var(margin-left) / calc(inherit(border-top-left-radius-y) - inherit(padding-top) - inherit(border-top-width) - var(margin-top) calc(inherit(border-top-right-radius-y) - inherit(padding-top) - inherit(border-top-width) - var(margin-top) calc(inherit(border-bottom-right-radius-y) - inherit(padding-bottom) - inherit(border-bottom-width) - var(margin-bottom) calc(inherit(border-bottom-left-radius-y) - inherit(padding-bottom) - inherit(border-bottom-width) - var(margin-bottom) ``` (in an hypothetical world with axial longhands for each corner) . So even if this could be helpful in very simple cases, it seems it would make it easy for the authors to shoot themselves in their foot as things get a bit more complex. And even if this is limited to a few properties, it still has the risk of preventing desirable property dependencies in the future to avoid breaking existing pages. I think it makes more sense to first work on the serialization problem to generalize `inherit()`, and defer exploration of this for later. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9454#issuecomment-1763202386 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 14 October 2023 23:01:37 UTC