-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Content with a grayscale filter and mix-blend-mode don't get mix-blend-mode applied. #47216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content with a grayscale filter and mix-blend-mode don't get mix-blend-mode applied. #47216
Conversation
EWS run on previous version of this PR (hash 81860b4) |
@@ -0,0 +1,26 @@ | |||
<!DOCTYPE html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to have this as a WPT.
81860b4
to
e6f7d6b
Compare
EWS run on current version of this PR (hash e6f7d6b) |
…d-mode applied. https://bugs.webkit.org/show_bug.cgi?id=293903 <rdar://152460888> Reviewed by Simon Fraser. Some filter types (including grayscale) are implemented by pushing a transparency layer, rather than diverting to a temporary context. In those cases, the code attempting to setup a transparency layer for opacity (and mix-blend-mode) ends up doing so too late, and applies the mix-blend-mode inside the filter (where it has nothing to blend with). Move this up to before the filter is setup, so that the ordering is always correct. * LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/filter-with-mix-blend-mode-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/filter-effects/filter-with-mix-blend-mode.html: Added. * Source/WebCore/rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintLayerContents): Canonical link: https://commits.webkit.org/296827@main
e6f7d6b
to
1e13b3d
Compare
Committed 296827@main (1e13b3d): https://commits.webkit.org/296827@main Reviewed commits have been landed. Closing PR #47216 and removing active labels. |
1e13b3d
e6f7d6b