Re: [CSSWG] Minutes and Resolutions 2009-02-04: box-shadow and border-image

On Feb 5, 2009, at 10:02 AM, Håkon Wium Lie wrote:

> Also sprach Brad Kemper:
>
>>> RESOLVED: box-shadow is not suppressed by border-image
>>> RATIONALE: It's useful in many cases, and the author can suppress
>>>            it himself as needed.
>>
>> Can this be reopened? I strongly disagree with the reasoning above,
>
> I argued for not suppressing border-shadow, for two reasons:
>
> - properties should be independent of each other, as much as
>   possible. Unless there are strong reasons for it, setting a value
>   on one property shouldn't affect the interpretation of other
>   properties.

image-border is already not independent of other properties. It  
changes border-width and the visibility of borders regardless of  
border-style and border-color. UA-stroked borders, like box-shadow and  
border-radius, and not necessary when there is a border-image visible.  
All those properties are decorations around the edge of the box, and  
are equal in their need to be suppressed when image-border is there to  
replace them.

> - having box shadows on boxes with border-image seems useful.

It not. It is ONLY useful in those limited cases where the contour of  
the image just happens to follow the same contour as what can be  
achieved without it. Given all the shapes you could create with image- 
border, it is far, far more useful to have box-shadow as a fallback,  
which is not possible your way. On a scale of 0 to 10 for usefulness  
in this sphere:

Letting the UA try to draw the shadow in the right place when you've  
created images for the border: 1.

Being able to have a fallback shadow when image-border can't be drawn:  
8.

> The
>   argument that one can create these shadows in pixmap editor is not
>   convincing. I don't want to open a pixmap editor, I want to set
>   shadows in CSS

It is extremely unlikely that you would create satisfactory images for  
the border without opening an image editor. It stretches credulity to  
suggest otherwise. The argument that would not create the shadow at  
the same time, in order to get it exactly where you want it, is not  
convincing.


>
>
> Cheers,
>
> -h&kon
>              Håkon Wium Lie                          CTO °þe®ª
> howcome@opera.com                  http://people.opera.com/howcome

Received on Thursday, 5 February 2009 18:20:41 UTC