RESOLVED FIXED 228771
[cairo][GTK][WPE] Elliptic radial gradients are not working
https://bugs.webkit.org/show_bug.cgi?id=228771
Summary [cairo][GTK][WPE] Elliptic radial gradients are not working
Miguel Gomez
Reported 2021-08-04 04:56:05 PDT
There are some examples in this page that show the problem: https://people.igalia.com/magomez/gradient/index.html All of the rendered gradients are circular while some of them should be elliptic. The problem here is that we use cairo_pattern_create_radial() to create the gradients, and that doesn't support elliptic gradients. We need to do some transformation matrix magic in order to achieve the elliptic result.
Attachments
Patch (2.75 KB, patch)
2021-08-04 05:00 PDT, Miguel Gomez
no flags
Miguel Gomez
Comment 1 2021-08-04 05:00:08 PDT
Miguel Gomez
Comment 2 2021-08-04 05:02:15 PDT
(In reply to Miguel Gomez from comment #1) > Created attachment 434898 [details] > Patch This patch is going to break some layout tests that will need to be rebaselined. At this point I can't reproduce the results created by the bot, so in order to update the test results I'll wait for the bot to fail on them, get the result produced, and send later a gardening patch with the new expectations.
EWS
Comment 3 2021-08-04 13:28:24 PDT
Committed r280654 (240265@main): <https://commits.webkit.org/240265@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 434898 [details].
Arcady Goldmints-Orlov
Comment 4 2021-08-06 11:02:06 PDT
As an added bonus this also fixed imported/w3c/web-platform-tests/css/css-images/multiple-position-color-stop-radial.html
Diego Pino
Comment 5 2024-01-05 12:14:59 PST
*** Bug 142516 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.