webdriver
webdriver copied to clipboard
Notion of bounding rectangle is not defined
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.
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?
Note: This is a part of the cause behind some of the issues I describe in #1632