[whatwg] Canvas size and double buffering.
Robert O'Callahan
robert at ocallahan.org
Thu Feb 4 11:08:57 PST 2010
On Fri, Feb 5, 2010 at 3:25 AM, Brian Campbell <lambda at continuation.org>wrote:
> On Feb 4, 2010, at 1:55 AM, Robert O'Callahan wrote:
>
> > 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?
> >
> > No.
>
> In what cases are fractional pixels drawn? I see fractional widths being
> returned here, but it seems to be drawing rounded to the nearest pixel:
>
> http://ephemera.continuation.org/percentage-width.html
>
Box edges are (usually) snapped to the nearest *device pixel* boundary. That
is not the same as rounding the CSS pixel width or height to the nearest
integer.
Rob
--
"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
53:5-6]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100205/53f785b1/attachment-0001.htm>
More information about the whatwg
mailing list