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

Re: [css3-background] box-shadow and border-break

From: David Hyatt <hyatt@apple.com>
Date: Sun, 01 Feb 2009 15:53:57 -0600
Cc: robert@ocallahan.org, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-id: <61A272F4-B085-4627-95E1-CEA1DEF9E6F3@apple.com>
To: Brad Kemper <brad.kemper@gmail.com>
On Feb 1, 2009, at 2:30 PM, Brad Kemper wrote:

>
> On Feb 1, 2009, at 10:50 AM, Robert O'Callahan wrote:
>
>> On Sun, Feb 1, 2009 at 6:53 PM, fantasai <fantasai.lists@inkedblade.net 
>> > wrote:
>> Robert O'Callahan wrote:
>>
>>  So you're saying that in my testcase, the shadow of the first box  
>> of the span should disappear, since it's to the right of that box's  
>> right border edge, but the shadow of the second box of the span  
>> should be drawn in its entirety?
>>
>> No, the shadow of the first box should be drawn except on the  
>> (broken)
>> left side, and the shadow of the second box should be drawn except
>> on the (broken) right side.
>>
>> Like this:
>>
>>          +-------
>>          |
>>          +-------
>>            ######
>>
>> ---------+
>>         |#
>> ---------+#
>> ###########
>>
>> You seem to have missed that the horizontal shadow offset in my  
>> example causes the box-shadow to not intersect the border-box.
>>
>> Rob
>
> You're right. Because the right side border and padding are  
> suppressed (because they appears on the next line), so should all of  
> the shadow that extends beyond that edge, which in your example is  
> the entire shadow. And likewise, because that part of the shadow  
> (the whole thing) is missing from the first line, it should be there  
> in the second line. Thus, the entire shadow should appear on the  
> second line in this example.
>
> Webkit and FireFox/Minefield don't do that yet.
>

A test case and bugs filed in our respective databases would be  
helpful here. :)

dave
Received on Sunday, 1 February 2009 21:54:42 GMT

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