Bug 11052

Summary: Non-integer percents are truncated in width/position (and possibly others)
Product: WebKit Reporter: Stuart Morgan <stuartmorgan>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal Keywords: GoogleBug
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
simple test-case none

Stuart Morgan
Reported 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
Attachments
simple test-case (1.24 KB, text/html)
2006-09-26 18:00 PDT, Stuart Morgan
no flags
Stuart Morgan
Comment 1 2006-09-26 18:00:58 PDT
Created attachment 10789 [details] simple test-case
Dave Hyatt
Comment 2 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).
Alexey Proskuryakov
Comment 3 2006-09-26 21:28:51 PDT
*** This bug has been marked as a duplicate of 5164 ***
Note You need to log in before you can comment on or make changes to this bug.