WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
8732
backgrounds with background-size and background-origin do not always lay out correctly
https://bugs.webkit.org/show_bug.cgi?id=8732
Summary
backgrounds with background-size and background-origin do not always lay out ...
Beth Dakin
Reported
2006-05-04 09:50:54 PDT
backgrounds with background-size, background-position and/or background-origin do not always lay out correctly. This problem is covered by the following existing layout tests: fast/background/size/backgroundSize10.html fast/background/size/backgroundSize12.html fast/background/size/backgroundSize18.html fast/background/size/backgroundSize19.html
Attachments
Patch
(12.99 KB, patch)
2006-05-04 09:57 PDT
,
Beth Dakin
hyatt
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Beth Dakin
Comment 1
2006-05-04 09:57:20 PDT
Created
attachment 8104
[details]
Patch Here is a patch that fixes the problem. This patch generally re-arranges things so that the scaledImageWidth and scaledImageHeight are calculated at the beginning and taken into consideration when calculating cx, cy, cw, ch, sx, and sy. This means that we no longer have to scale the source point over in the image code and that we can remove some of the weird if-clauses that adjusted the c-values when the scale sizes were computed after the fact.
Dave Hyatt
Comment 2
2006-05-04 10:41:56 PDT
Comment on
attachment 8104
[details]
Patch r=me
Beth Dakin
Comment 3
2006-05-04 11:17:54 PDT
I committed the fix.
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