w3c / fxtf-drafts

Mirror of https://hg.fxtf.org/drafts
https://drafts.fxtf.org/
Other
68 stars 49 forks source link

[css-masking-1] Add destination-out for mask-composite #488

Open Azmisov opened 1 year ago

Azmisov commented 1 year ago

(A+B)-C mask operation I have found is quite useful (destination-out), but it is the only one of the relevant alpha Porter-Duff composite operations that was not included in the spec. E.g. I want to subtract a mask from both A and B.

Note the lack of an equivalent destination-out operation.

I can't think of a way to simulate it with existing operations (add, subtract, intersect, exclude).