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

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

From: Håkon Wium Lie <howcome@opera.com>
Date: Thu, 5 Feb 2009 19:41:49 +0100
Message-ID: <18827.13037.615874.262919@opera.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: (wrong string) åkon Wium Lie <howcome@opera.com>, Brad Kemper <brad.kemper@gmail.com>, fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org

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 GMT

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