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

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