W3C home > Mailing lists > Public > www-style@w3.org > March 2014

Re: [css-masking] multiple mask layers and mask-composite

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 05 Mar 2014 09:02:13 -0800
Message-ID: <53175895.8040208@inkedblade.net>
To: www-style@w3.org
On 03/05/2014 03:15 AM, Dirk Schulze wrote:
>
>> I vaguely remember the problem being something about choosing between
>>   - each layer acts individually as a mask over all the layers+content
>>     before it
>> vs.
>>   - composite all the mask images, then use that as a mask
>> and then the possibility of grouping certain combinations of images
>> rather than all or none. Does your proposal address that in a reasonable
>> way?
>
> I believe so. Not only that, it provides much more control over the content,
> many people familiar with globalCompositeOperators from HTML canvas will
> appreciate having the same capabilities.
>
> The two modes you mention can be archived with source-over (draw layers
> on top of each other and mask together) and destination-in (mask each
> layer with the the next layer and then mask content with the result).

Can you give an example that would accomplish the two behaviors above?
Do I need to be careful with the operator assigned to the last image,
for example?

~fantasai
Received on Wednesday, 5 March 2014 17:02:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 March 2014 17:02:41 UTC