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

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

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 10 Feb 2014 07:31:05 -0800
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-Id: <260D0B9C-B315-4B76-B222-B8E32CB3FF3F@gmail.com>
To: Sebastian Zartner <sebastianzartner@gmail.com>
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. 
Received on Monday, 10 February 2014 15:31:35 UTC

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