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

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