At the moment, it's not fully clear in the get the origin rectangle algorithm for the case of origin=viewport if we should take into account scrollbar dimensions when calculating the viewport width and height. The text says, that we should use VisualViewport width and height (which would mean not including scrollbar), but the width and height are linked to DOMRect (which would mean including scrollbar).
At the moment, it's not fully clear in the get the origin rectangle algorithm for the case of
origin=viewport
if we should take into account scrollbar dimensions when calculating the viewport width and height. The text says, that we should use VisualViewport width and height (which would mean not including scrollbar), but thewidth
andheight
are linked to DOMRect (which would mean including scrollbar).The WebDriver Classic spec refers to DOMRect. Where CDP, from what I've understood, seems to default to
VisualViewport
.