4 ms·
TIL about the dvh units used for the splash. The article even has a video of scrolling down with it. https://ishadeed.com/article/new-viewport-units/ https://i
by Zren 3y ago
TIL about the dvh units used for the splash. The article even has a video of scrolling down with it.
https://ishadeed.com/article/new-viewport-units/ https://ishadeed.com/article/new-viewport-units/
https://caniuse.com/viewport-unit-variants https://caniuse.com/viewport-unit-variants
- zagrebian 3y agoFor position:fixed elements, width:100dvh produces the same result as bottom:0. The dvh unit was not needed for this case.
- wackget 3y agoSplitting mobile viewports into 3 separate properties seems incredibly hacky to me. I really can't believe it's an official CSS spec. IMO the browser makers are at fault for making the viewport be partially obscured under the UI. The viewport should be just that: viewable.