W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

[csswg-drafts] [css-conditional] [css-contain] `cw` and `ch` units (#5888)

From: Una Kravets via GitHub <sysbot+gh@w3.org>
Date: Fri, 22 Jan 2021 20:56:43 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-792300150-1611349002-sysbot+gh@w3.org>
una has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-conditional] [css-contain] `cw` and `ch` units ==
Viewport-relative units (such as `vh` and `vw`) are commonly used among UI design for sizing and spacing of elements.

With the new container queries spec, authors will want to use such units as container-height (`ch`) and container-width (`cw`) for container-based sizing.

An example is using `cw` units in `srcset` similarly to how one would use `vw` units in `srcset`. Percentages would not work in that instance, as the value needs to be absolute or relative length.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5888 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 22 January 2021 20:56:45 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:38 UTC