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

Re: 'border-image' confusion

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 6 Feb 2011 21:10:56 -0800
Message-ID: <AANLkTing3BqnvzBD3WVrYL7q1gKc9VctXy3etCrT8U=f@mail.gmail.com>
To: Simon Fraser <smfr@me.com>
Cc: Brad Kemper <brad.kemper@gmail.com>, "Eric A. Meyer" <eric@meyerweb.com>, "www-style@w3.org" <www-style@w3.org>
On Sun, Feb 6, 2011 at 3:41 PM, Simon Fraser <smfr@me.com> wrote:
> On Feb 6, 2011, at 12:25 PM, Brad Kemper wrote:
>> On Feb 6, 2011, at 10:12 AM, Simon Fraser <smfr@me.com> wrote:
>>> I think there's also a valid use case for a single border-image that gets stretched, un-tiled, to the border box size, with the center clipped out. This would give us the ability to use a gradient image here, thus fulfilling the gradient border request.
>>
>> Shouldn't that happen anyway with gradients? Since they are dimensionless, they should automatically stretch to the full dimensions of the border box & outsets, prior to slicing. At least, that is my expectation.
>
> I actually have no idea how a gradient should respond to slicing for border-image. WebKit has bugs, but I'm not sure what the expected behavior is.

A gradient is an image, and once it's used, it has a definite size.
It should act exactly like any other image of that size.  There's no
magic behavior here.

~TJ
Received on Monday, 7 February 2011 05:11:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT