- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 28 Jan 2015 15:57:01 -0800
- To: Axel Dahmen <brille1@hotmail.com>
- Cc: www-style list <www-style@w3.org>
On Wed, Jan 28, 2015 at 7:01 AM, Axel Dahmen <brille1@hotmail.com> wrote: > Since box-shadow doesn't apply to content but only to boxes, whereas > text-shadow applies to the content itself, I suggest to amend the > text-shadow property specification to have this property also apply to > inline replaced content, e.g. semi-transparent images, like PNG images with > transparent areas. text-shadow is for text, and makes assumptions about how shadows are cast - its the geometry of the text, unrelated to how transparent the text is (similar to how box-shadow is based on the geometry of the box, unrelated to the transparency of its background/etc). Having it respond to transparency for inline elements would be an odd departure. For a shadow that does respond to transparency, we have the drop-shadow() filter, defined in the Filters spec. It works on all elements. ~TJ
Received on Wednesday, 28 January 2015 23:57:48 UTC