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

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 29 Apr 2014 21:26:58 -0700
Message-ID: <53607B92.9050104@inkedblade.net>
To: Dirk Schulze <dschulze@adobe.com>
CC: www-style <www-style@w3.org>, "hyatt@apple.com" <hyatt@apple.com>
On 04/29/2014 11:16 AM, Dirk Schulze wrote:
>
> 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.

That sounds correct to me. Thanks!

~fantasai
Received on Wednesday, 30 April 2014 04:27:26 UTC

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