You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Edit: ch would not work as a unit name due to the existing ch (character) unit
rachelandrew, castastrophe, johnsmithjsjs, mirisuzanne, stephanie-walter and 25 morezigmasdirigeant, Poopooracoocoo, changyousifang, FrontRowWithJ and lenard-dumalagan