This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The x/y/height/width properties of ElementRect are defined as doubles [1]. Since pixels are defined in the CSS 3 Values specification as of the type NUMBER [2] we should make sure to use a JSON compatible data type, number [3]. Possibly this bug is a covered by bug 26275. 1. https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#attributes-2 2. http://www.w3.org/TR/css3-values/#attr-notation 3. http://www.ietf.org/rfc/rfc4627.txt
This is because it is described as WebIDL currently. WebIDL does not have a number type.
*** This bug has been marked as a duplicate of bug 26707 ***
Actually switching to JSON won't be fully compatible with CSS Values spec as it says the following about Number type: > As with integers, the first character of a number may be immediately preceded by ‘-’ or ‘+’ to indicate the number's sign. RFC4627 doesn't seem to allow for a number to start from "+"