- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Sat, 30 Dec 2023 09:03:05 +0000
- To: public-css-archive@w3.org
@brandonmcconnell The computed value of border-*-width is an absolute length, so assuming this is based on the serialization of the specified property: - If all the sides have the same thickness, then `inherit(border-width)` will be a `<length>` and `calc()` will work. - If some sides have different thicknesses, then `calc()` will not work. Presumably it will become invalid at computed-value time, so `medium` (3px). If you want an example that varies depending on whether this uses the computed vs the used value: ```css #foo { height: 100px } #foo > #bar { height: 50% } #foo > #bar > #baz { height: inherit(height) } ``` Then I would say that this inherits the computed value: | Element | Computed | Used | | - | - | - | | foo | 100px | 100px | | bar | 50% | 50px | | baz | 50% | 25px | -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2864#issuecomment-1872487429 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 30 December 2023 09:03:07 UTC