What is Nostr?
Šime Vidas /
npub1nyz…wavc
2023-07-06 21:35:47

Šime Vidas on Nostr: CSS spec: > The viewport-percentage lengths are relative to the size of the initial ...

CSS spec:

> The viewport-percentage lengths are relative to the size of the initial containing block

https://drafts.csswg.org/css-values/#viewport-relative-lengths

If that is true, then why does 100vw overflow when a classic scrollbar is present? Classic scrollbars shrink the ICB, so 100vw should decrease, but it doesn’t, so the spec text is wrong or what?

edit: The answer is that the CSS spec lives in an imaginary world where classic scrollbars don’t exist, so the ICB is never shrunk by such a scrollbar.
Author Public Key
npub1nyzm4ujq6ex8hvf74jrmxpl0p8h0g56upmdgxjv8gze72g4vn5ysjnwavc