- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Sat, 13 Nov 2021 01:35:05 +0000
- To: public-css-archive@w3.org
Assuming that the parent is the containing block, and that the desired property computes to a length, then [#2864](https://github.com/w3c/csswg-drafts/issues/2864#issuecomment-816280875) already resolved to add an `inherit()` function like ```css margin-top: calc(0.1 * inherit(height)); padding-left: calc(0.5 * inherit(padding-left)); padding-bottom: calc(0.3 * inherit(border-bottom-width)); ``` But `inherit(height)` will typically be `auto` and this won't work. Your proposal would work in that case. > I don't know whether it could result in an infinite loop I think it's fine, cycles already happen right now and they are handled in https://drafts.csswg.org/css-sizing-3/#cyclic-percentage-contribution -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6814#issuecomment-967756268 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 13 November 2021 01:35:07 UTC