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

Also sprach Tab Atkins Jr.:

 > >  - having box shadows on boxes with border-image seems useful. 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
 > 
 > This I simply don't agree with.  The majority of the time, I (and I
 > mean I, personally) will be using border-image to create
 > non-rectangular shapes.

That's fine, you are free to do so. 

 > box-shadow will be more than useless in these
 > cases - it will produce a completely unintuitive shadow that doesn't
 > correspond to any visible edge.

Perhaps. The solution is simple: don't set a box-shadow. 

I'd like to retain the functionality, I find it useful.

 > You say you don't want to open an image editor.  This *is* a valid
 > concern in *normal* cases, where you are not using an image editor at
 > all and just want to add a shadow to your box.  If you're using
 > border-image, though, you're almost certainly creating the image in an
 > image editor, where adding a semi-transparent shadow is not difficult.

But the end result is an image with a frozen pixmap shadow at a fixed
resolution and color, forever tied to the border image. I don't want
that. I want box shadows as vectors that are suitable for printing and
DOM manipulations, that compress well. They should be setable
independently of the border image. E.g., it should be easy to change the
box shadow color when when hovering over the element.

Cheers,

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

Received on Thursday, 5 February 2009 18:42:43 UTC