- From: MatthewLewis1981 via GitHub <sysbot+gh@w3.org>
- Date: Wed, 23 Mar 2022 21:29:43 +0000
- To: public-css-archive@w3.org
MatthewLewis1981 has just created a new issue for https://github.com/w3c/csswg-drafts: == [Feature request] Parent width and height units == vw and vh can be useful for "big" pieces of a layout. I submit there is also need for similar units relative to the available dimensions within the parent element. These units (I suggest the rather obvious "pw" and "ph") would be more flexible than percents since the parent width or height values could be used to set the opposite values in child elements. This would be useful for controlling aspect ratios and so forth. Example usage: <div style="width: 50vw"> <div style="width: 100%; max-height: 25pw;"></div> </div> Might as well throw in pmin and pmax while we're at it, just for the sake of thoroughness. ;) Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7169 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 23 March 2022 21:29:44 UTC