WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
247298
Don't apply aspect ratio scaling to gradient images without a natural aspect ratio
https://bugs.webkit.org/show_bug.cgi?id=247298
Summary
Don't apply aspect ratio scaling to gradient images without a natural aspect ...
Matt Woodrow
Reported
2022-10-31 17:06:24 PDT
If we use a gradient as a background image, and set one of the background size dimension to auto, we currently scale that dimension by the same amount as the other axis to preserve the aspect ratio. Gradients have no natural dimensions (and thus no natural aspect ratio) -
https://w3c.github.io/csswg-drafts/css-images/#gradients
. Background sizing should fall back to using 100% (for the case where we have one size, and auto), if there's no natural aspect ratio or dimensions -
https://w3c.github.io/csswg-drafts/css-backgrounds/#background-size
<
rdar://101661731
>
Attachments
Add attachment
proposed patch, testcase, etc.
Matt Woodrow
Comment 1
2022-10-31 17:15:12 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/5987
EWS
Comment 2
2022-11-02 16:30:16 PDT
Committed
256256@main
(759576401a3d): <
https://commits.webkit.org/256256@main
> Reviewed commits have been landed. Closing PR #5987 and removing active labels.
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