WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 5164
11052
Non-integer percents are truncated in width/position (and possibly others)
https://bugs.webkit.org/show_bug.cgi?id=11052
Summary
Non-integer percents are truncated in width/position (and possibly others)
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
Details
View All
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug