webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

Notion of bounding rectangle is not defined

Open vladimir-nechaev opened this issue 4 years ago • 2 comments

In chapter 12. Elements, section 12.4 State:

bounding rectangle is the following link https://www.w3.org/TR/webdriver/#dfn-bounding-rectangle. The link does not lead to any definition of bounding rectangle however the text referred by it has link to: https://www.w3.org/TR/geometry-1/ This document has no definition of bounding rectangle either.

Context: I'm reading the documentation about GetElementRect in order to understand what is the size of the rect. I see that chrome returns {offsetWidth, offsetHeight} - these are integers ~ {Math.round(getBoundingClientRect.width()), Math.round(getBoundingClientRect.height())} while Gecko returns non-integer (double) values that seem to be {getBoundingClientRect.width(), getBoundingClientRect.height()} Which one of these is correct? The documentation gives no clues.

vladimir-nechaev avatar Oct 17 '21 07:10 vladimir-nechaev

So the webdriver spec actually refers to the draft of the Geometry Interfaces Module. @AutomatedTester could we get those bits updated so that we can answer the above question?

whimboo avatar Oct 18 '21 07:10 whimboo

Note: This is a part of the cause behind some of the issues I describe in #1632

andrewnicols avatar Nov 18 '21 01:11 andrewnicols