3 ms·
I don’t think that’s correct. I think VMIN solves the OP comment. “Unit vmin refers to the smallest dimension of the viewport. Just like is the case with unit
by alberth 4y ago
I don’t think that’s correct. I think VMIN solves the OP comment.
“Unit vmin refers to the smallest dimension of the viewport. Just like is the case with unit vw, unit vmin needs recalculation to subtract the scrollbar from the viewport width.
https://www.terluinwebdesign.nl/en/css/incoming-20-new-css-viewport-units-svh-lvh-dvh-svw-lvw-dvw/ https://www.terluinwebdesign.nl/en/css/incoming-20-new-css-v...
- azangru 4y agoFrom the article on the new viewport units, from the web.dev site maintained by Google[0]: "Caveats There‘s a few caveats to know about Viewport Units: - None of the viewport units take the size of scrollbars into account. On systems that have classic scrollbars enabled, an element sized to 100vw will therefore be a little bit too wide. This is as per specification." Notice that although the example in the above paragraph uses the well-known vw unit, the text explicitly says "none of the viewport units". [0] - https://web.dev/viewport-units/#caveats https://web.dev/viewport-units/#caveats