Re: [css3-background] Corner clipping for images and gradients

On Mon, Feb 10, 2014 at 7:31 AM, Brad Kemper <brad.kemper@gmail.com> wrote:
> On Feb 9, 2014, at 11:00 AM, Sebastian Zartner <sebastianzartner@gmail.com> wrote:
>>
>> I am also not sure whether border-image-offset should be reused for that purpose. The offset is unrelated to clipping.
>
> It is not unrelated. Border-image-offset is what produces the overhang that you said authors should be able to opt out of. It just doesn't make any sense to opt out of it only at the corners.
>
>> Again, what speaks against adding a new property controlling the clipping of the border? The default value would be to let it overhang the border box.
>
> Again, because clipping the image at the border makes no sense when we already have a property to push the image out beyond the border. It would make border-image-offset more or less pointless, especially when use with a gradient image.
>
> Since clipping at the border only makes sense when you have 'border-image-offset:0', and you want a change that is merely a Boolean behavior change, this suggests to me we just have a new value that is 0 with clipping.

Yeah, that seems kinda reasonable.

~TJ

Received on Monday, 10 February 2014 18:42:14 UTC