Currently there's no reliable way to get the small/large viewport dimensions.
There are some tricks in the wild for working with these values like inserting an element with something like height: 100svh and reading its height.
It would be handy in some cases to have these values exposed on the VisualViewport interface for easy querying.
I came across this when I was working on a polyfill for ViewTimeline, so I assume there are other common use-cases.
mentioning some folks who might be interested: @bramus @emilio