[Webkit-unassigned] [Bug 261841] New: [Filters] Don't override the alpha channel of the GraphicsDropShadow color by the shadow opacity

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 20 14:09:30 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=261841

            Bug ID: 261841
           Summary: [Filters] Don't override the alpha channel of the
                    GraphicsDropShadow color by the shadow opacity
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230920/7e3fe9a7/attachment.htm>


More information about the webkit-unassigned mailing list