On 2/27/15 7:25 PM, Robert O'Callahan wrote:
On Sat, Feb 28, 2015 at 8:30 AM, Jeff Muizelaar<jmuizel...@mozilla.com>
wrote:

>On Fri, Feb 27, 2015 at 2:21 PM, Robert O'Callahan<rob...@ocallahan.org>
>wrote:
> >Oh, another issue is that I've followed the spec and made offsetX/Y
> >doubles, whereas Blink is integers, which introduces a small amount
>compat
> >risk.
> >
>
>IE also uses integers. Wouldn't it be better to change the spec to
>follow the existing browser's behaviour?
>
In some ways, yes, although the extra accuracy given by doubles could be
useful in practice.

Gecko's offsetX/Y could return doubles, for compatibility with the spec, that are always snapped to whole numbers, for compatibility with other browsers.

Or Gecko could add random noise to the low bits of offsetX/Y so they are *never* whole numbers. Web developers would need to handle fuzzy results today, thus preparing for more precise results in the future. :)
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to