Re: [css-text-decor]: text-shadow should also apply to replaced content, like semi-transparent images

Hi.
Also there are filter: drop-shadow(); which behave in such way.
Is there any reason not to use it?


Anton Nemtsev
Frontend Developer
+38 050 277 38 82
anton.nemtsev@vaimo.com

Vaimo
Zhylianska str. 31
Kiev, Ukraine
+38 044 364 19 66 | www.vaimo.com

We are hiring - Help us grow!
vaimo.com/careers

Follow us:


On 22 December 2016 at 17:19, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 01/28/2015 06:31 PM, Axel Dahmen 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.
>
>
> While this does seem to make a lot of sense in many cases,
> it's probably too late to make such a change, as 'text-shadow'
> has been in-use with its current semantics for a fairly long
> time now. I'd be afraid that content out there would be
> depending on it not applying.
>
> The other consideration of course is that it is called
> `text-shadow`, and images are not, generally-speaking,
> text. :)
>
> ~fantasai
>

Received on Tuesday, 3 January 2017 10:51:10 UTC