- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Fri, 5 Feb 2010 08:08:57 +1300
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.htm>
Received on Thursday, 4 February 2010 11:08:57 UTC