Re: [csswg-drafts] [css-values-4] Add vvh+vvw values (#6113)

> 
> I may end up changing the name to `lvh` `lvw`. We'll see...
> 

If the units reflect the size of the visual viewport at maximum scale, that is the layout viewport (in my understanding). Naming it `lvh` and `lvw` would be a better idea. 

I’m not opposed to the suggestion. Having units that reflect the current size of the layout and visual viewport both have their merit. 

I’m worried about adding more confusion around viewports. If they’re named after the visual viewport they should reflect the size of that viewport (`window.visualViewport.height` In JS) and not the layout viewport. `lvh` and `lvw` seems like better names for what you want to achieve. 

Be aware that units that are synchronized with the viewport will change every frame, and can cause major performance and usability issues if used without care. 

-- 
GitHub Notification of comment by johannesodland
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6113#issuecomment-803549798 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 21 March 2021 10:25:32 UTC