W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] Canvas size and double buffering.

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 4 Feb 2010 19:55:36 +1300
Message-ID: <11e306601002032255m2767b9fao7d53a370af1c656a@mail.gmail.com>
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-0001.htm>
Received on Wednesday, 3 February 2010 22:55:36 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:20 UTC