Re: [csswg-drafts] [css-values-4] Add lvh+lvw 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.

Yep. I ended up aiming to the layout viewport instead of the visual viewport due to what I believe is the user's expectation.
 
> 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 agree. What I wonder is if they are worthwhile to implement from the browser's POV. Maybe we can leave a discussion about the vvh to some other time. At this time, people really expect pinch zoom to 

> 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.

If it's not in effect already, the UA is responsible for selecting a sensible frequency to apply the updates to the layout for the new dimension values. I will explicitly specify that in the proposal.

> > @johannesodland I updated the proposal. Please check if it makes more sense now.
> 
> I think the naming makes more sense now. Maybe update the title as well?

Certainly. Thanks for the heads up.

-- 
GitHub Notification of comment by brunoais
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6113#issuecomment-803552038 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:40:59 UTC