Bug 94359 - [CI][CSS Masking] apply luminance mask to context
Summary: [CI][CSS Masking] apply luminance mask to context
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 95389
  Show dependency treegraph
 
Reported: 2012-08-17 10:14 PDT by Dirk Schulze
Modified: 2023-11-14 00:49 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2012-08-17 10:14:23 PDT
CSS masking just supported alpha masks at the moment. For compatibility reasons to SVG and to support the general harmonization process with bug 90738, it looks reasonable to support luminance masks as well. This is currently described by the proposal for CSS Masking [1].

The old SVG masking code used to work with CI to transform a luminance mask to an alpha mask [2].

[1] http://dvcs.w3.org/hg/FXTF/raw-file/tip/masking/index.html#the-mask-type
[2] http://trac.webkit.org/browser/trunk/WebCore/svg/graphics/cg/SVGResourceMaskerCg.mm?rev=35895
Comment 1 Alex 2023-11-14 00:49:33 PST
Isn't it supported already since Safari 15.4?
https://caniuse.com/mdn-css_properties_mask-mode