WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
285382
Incorrect "extension" of CSS gradient with "longer hue" interpolation into regions beyond the first/last color stop
https://bugs.webkit.org/show_bug.cgi?id=285382
Summary
Incorrect "extension" of CSS gradient with "longer hue" interpolation into re...
Jonathan Kew
Reported
2025-01-04 04:06:56 PST
See attached example and description. The CSS spec[1] is clear that when coloring a gradient,
> Before the first color stop, the gradient line is the color of the first color stop, and after the last color stop, the gradient line is the color of the last color stop.
Therefore, if the first color stop is not at (or before) zero, there will be a region of solid color from the beginning of the gradient line to the first color stop, using the color of that first stop. Similarly, if the last color stop falls before the end of the gradient line, there will be a region of solid color at the end. However, when using "longer hue" interpolation, webkit renders such cases incorrectly, applying unwanted interpolation in these regions that should have solid first or last color. (See also Gecko issue
https://bugzilla.mozilla.org/show_bug.cgi?id=1939948
and Blink issue
https://issues.chromium.org/issues/387475844
.) [1]
https://drafts.csswg.org/css-images-4/#coloring-gradient-line
Attachments
testcase describing and illustrating the bug
(3.05 KB, text/html)
2025-01-04 04:07 PST
,
Jonathan Kew
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Jonathan Kew
Comment 1
2025-01-04 04:07:24 PST
Created
attachment 473772
[details]
testcase describing and illustrating the bug
Radar WebKit Bug Importer
Comment 2
2025-01-11 04:07:12 PST
<
rdar://problem/142738948
>
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