Re: [csswg-drafts] [css-box] Suggestion: Add "of <property>" syntax for percentage values of padding and margin properties (#6814)

@Loirooriol 
> What if you use height: 50% of height where the element establishing the containing block has a computed height of 75% or max-content?

Percentage values for `height` already refer to the `height` of the containing block (see [Calculating percentage values from the containing block](https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#calculating_percentage_values_from_the_containing_block)). If the containing block includes padding, the padding can simply be substracted from the containing block height and You get the height of the content box, or the border height can be added, and You get the border box `height`. Therefore, it should not be a problem to compute `of height` in that case.

> What if the containing block rectangle is a grid area much smaller than the establishing grid container element?

Can You please explain in more detail what the problem is that You are concerned about?

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


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

Received on Wednesday, 17 November 2021 09:25:16 UTC