Bug 185863 - Empty filter changes appearance of SVG group element containing mask
Summary: Empty filter changes appearance of SVG group element containing mask
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-05-22 05:00 PDT by Jan Bösenberg
Modified: 2022-12-14 14:31 PST (History)
6 users (show)

See Also:


Attachments
Test case showing the group without and with empty filter applied (1.57 KB, image/svg+xml)
2018-05-22 05:00 PDT, Jan Bösenberg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Bösenberg 2018-05-22 05:00:25 PDT
Created attachment 340973 [details]
Test case showing the group without and with empty filter applied

In the attached test case (online version at http://jsbin.com/mewosoteya ) an empty filter is applied to a group element that contains two rect elements, of which one is masked.

It would be expected that the filter has no effect at all, but the empty filter changes the appearance of the displayed gradient. It does not make any difference if the filter's "color-interpolation-filters" attribute is set to "sRGB" or "linearRGB".

On Safari only the left square is displayed correctly. The other two squares show a wrong gradient. On all other browsers all squares look the same.
Comment 1 Radar WebKit Bug Importer 2018-05-22 19:02:32 PDT
<rdar://problem/40472995>
Comment 2 Ahmad Saleem 2022-12-14 14:31:07 PST
I am not able to reproduce this bug in Safari 16.2 and the gradient is applied consistently across all three rectangles / boxes and it matches with Chrome Canary 110 and Firefox Nightly 110.

Please reopen if I am testing it incorrectly. Thanks!