[whatwg] Canvas size and double buffering.

Robert O'Callahan robert at ocallahan.org
Wed Feb 3 22:55:36 PST 2010

On Thu, Feb 4, 2010 at 6:50 PM, Brian Campbell <lambda at continuation.org>wrote:

> I think the most reasonable approach would be to say that the
> getBoundingClientRect().width or height is rounded to the nearest pixel.
> Boxes are displayed rounded to the nearest pixel, with no fractional pixels
> being drawn, right?


> Why would they report a width or height that is different than how they are
> displayed? All browsers that I've tested (the ones listed above, so not IE)
> report integral values for getBoundingClientRect().width and height (or for
> left and right in the case of Opera, which doesn't support width and
> height).

Firefox often returns non-integral values for getBoundingClientRect().width
or height.

"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100204/a7f585b8/attachment-0002.htm>

More information about the whatwg mailing list