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: ...
[cssom] Clarification to the "6 decimals" of serialized CSS number values #7416 Open ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results