- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Wed, 17 Nov 2021 20:26:47 +0000
- To: public-css-archive@w3.org
> Percentage values for `height` already refer to the `height` of the containing block They refer to the height of the containing block rectangle. Not to the computed value of the `height` property on the element that establishes the containing block, as `inherit()` would do (if the containing block is established by the parent). What I'm saying is that the feature that you want should probably use the former, just like percentages do now. > Can You please explain in more detail what the problem is that You are concerned about? ```css #grid { display: grid; height: 100px; grid-template-rows: 10px 90px; } #grid-item { grid-row: 1; height: 50% of height; } ``` Again, this should likely use the containing block rectangle. So just like `height: 50%`, it would be 50% of 10px, 5px. Not 50% of 100px, 50px. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6814#issuecomment-971962753 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 20:26:49 UTC