Bug 11052 - Non-integer percents are truncated in width/position (and possibly others)
Summary: Non-integer percents are truncated in width/position (and possibly others)
Status: RESOLVED DUPLICATE of bug 5164
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: GoogleBug
Depends on:
Blocks:
 
Reported: 2006-09-26 18:00 PDT by Stuart Morgan
Modified: 2006-09-26 21:28 PDT (History)
0 users

See Also:


Attachments
simple test-case (1.24 KB, text/html)
2006-09-26 18:00 PDT, Stuart Morgan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Morgan 2006-09-26 18:00:09 PDT
CSS values specified in non-integer percentages are truncated as percentages, rather than being computed with the actual value and truncated at the pixel level as necessary.  See attached test-case, showing the behavior for both 'width' and 'left'.  This reproduces with 419.3 and the 9/26 WebKit nightly.

This causes Safari layout problems on Google Calendar, which does portions of its layout using decimal percentage widths and positions (Google bug 513320).

Also filed as rdar://4752325
Comment 1 Stuart Morgan 2006-09-26 18:00:58 PDT
Created attachment 10789 [details]
simple test-case
Comment 2 Dave Hyatt 2006-09-26 18:46:43 PDT
We don't support decimal percentages right now except for font-size.  The Length class (used for front end storage for values like left and width) just stores integer values (which ends up being fine for everything but percents).
Comment 3 Alexey Proskuryakov 2006-09-26 21:28:51 PDT

*** This bug has been marked as a duplicate of 5164 ***