On Fri, Feb 5, 2010 at 3:25 AM, Brian Campbell <lam...@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 <lam...@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

"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

Reply via email to