This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26704 - ElementRect uses doubles instead of JSON compatible number type
Summary: ElementRect uses doubles instead of JSON compatible number type
Status: RESOLVED DUPLICATE of bug 26707
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
Depends on:
Reported: 2014-09-02 05:38 UTC by Andreas Tolfsen
Modified: 2014-09-06 06:58 UTC (History)
3 users (show)

See Also:


Description Andreas Tolfsen 2014-09-02 05:38:16 UTC
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.

Comment 1 David Burns :automatedtester 2014-09-03 22:09:40 UTC
This is because it is described as WebIDL currently. WebIDL does not have a number type.
Comment 2 David Burns :automatedtester 2014-09-03 22:10:42 UTC

*** This bug has been marked as a duplicate of bug 26707 ***
Comment 3 Andrey Botalov 2014-09-06 06:58:37 UTC
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 "+"