Bug 66256 - Incorrect CSS dimensions in px on page zoom
Summary: Incorrect CSS dimensions in px on page zoom
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://cjbportfolio.com/lab/webkitbug...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-08-15 14:53 PDT by CJ Bates
Modified: 2022-07-12 15:11 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CJ Bates 2011-08-15 14:53:33 PDT
When changing the page zoom, the CSS "width" property of some elements are off by +/- 1px.  I assume this has to do with the rounding calculations when a page is zoomed.

I've provided a link to a page that demos this bug.  I am alerting the width of an element, and if you zoom the page in or out you can see that the width is sometimes off by one px compared to what is being set in the CSS.
Comment 1 Adam Roben (:aroben) 2011-08-16 11:51:02 PDT
I can reproduce in Safari 5.1 on Lion and Windows 7.
Comment 2 Brent Fulgham 2022-07-12 15:10:52 PDT
This still happens in Safari 15.5+.
Comment 3 Radar WebKit Bug Importer 2022-07-12 15:11:03 PDT
<rdar://problem/96913055>