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

Re: [css-masking] mask-box-slice: fill definition

From: Dirk Schulze <dschulze@adobe.com>
Date: Tue, 29 Apr 2014 18:16:24 +0000
To: fantasai <fantasai.lists@inkedblade.net>
CC: www-style <www-style@w3.org>, "hyatt@apple.com" <hyatt@apple.com>
Message-ID: <FB946389-A615-4EF5-B1A1-5DCA483E44EF@adobe.com>

On Apr 28, 2014, at 9:13 PM, Dirk Schulze <dschulze@adobe.com> wrote:

> 
> On Apr 23, 2014, at 10:43 AM, fantasai <fantasai.lists@inkedblade.net> wrote:
> 
>> On a related note,
>> # The middle image part is discarded (treated as fully transparent
>> # black) unless the fill-box keyword is present.
>> 
>> This means that by default, the padding box of the element is
>> masked out (not shown).
>> 
>> I think that's the opposite of the intended behavior. :)
>> By default, the middle part should be shown, not masked out.
> 
> ‘fill’ is the initial value and usually the middle part of the image allows the content to show through. Therefore, it won’t clip out the middle part of the content. This is the current behavior in WebKit and Blink.
> 
> The question is if it is expected that the middle part of the content dose not show through if ‘fill’ is not specified. It might not be expected. After all, mask-box will usually be used to mask the edges of the element.
> 
> I think it is better to change the behavior to not mask the middle of the content at all if ‘fill' is not specified. 

I changed the behavior as described above. No fill means no clipping/masking of the middle part, fill means masking with the middle piece of the mask box image.

Greetings,
Dirk

> 
> Greetings,
> Dirk
> 
>> 
>> ~fantasai
>> 
> 
> 
Received on Tuesday, 29 April 2014 18:16:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:21 UTC