Bug 261841 - [Filters] Don't override the alpha channel of the GraphicsDropShadow color by the shadow opacity
Summary: [Filters] Don't override the alpha channel of the GraphicsDropShadow color by...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on:
Blocks: 261925
  Show dependency treegraph
 
Reported: 2023-09-20 14:09 PDT by Said Abou-Hallawa
Modified: 2023-09-21 17:59 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2023-09-20 14:09:30 PDT
Creating the GraphicsDropShadow with color equal to 

    auto color = m_shadowColor.colorWithAlpha(m_shadowOpacity);

is wrong since it will override the alpha channel of the drop-shadow filter with the shadow opacity. For example an element with the following css 

    filter: drop-shadow(15px 15px 0px rgba(0, 0, 0, 0.5));

will display a black drop shadow effect for this element. This css filter appears in the expected test page: imported/w3c/web-platform-tests/css/filter-effects/css-filters-animation-drop-shadow-expected.html.
Comment 1 Radar WebKit Bug Importer 2023-09-20 17:09:11 PDT
<rdar://problem/115812347>
Comment 2 Said Abou-Hallawa 2023-09-20 17:14:53 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17997
Comment 3 EWS 2023-09-20 22:07:41 PDT
Committed 268233@main (db985ec58914): <https://commits.webkit.org/268233@main>

Reviewed commits have been landed. Closing PR #17997 and removing active labels.