Re: [csswg-drafts] [css-values-4] inherit() function: like var() for parent value, for any property (#2864)

@tolmasky Then you should file a new issue, since you want to resolve percentages with the actual size of the containing block, while `inherit(height)` will be a computed value, and may not be the containing block.

>  I would be surprised if this addition is any more circular

Yeah it should be fine, in the block axis it's easier for percentages to be cyclic but that can also happen in the inline axis, and the behavior is defined in https://drafts.csswg.org/css-sizing-3/#cyclic-percentage-contribution. In fact, for a while the flexbox spec allowed resolving padding percentages like you want (see #2085), so it's not intrinsically problematic.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2864#issuecomment-1872363014 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 29 December 2023 22:03:35 UTC