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