W3C home > Mailing lists > Public > www-style@w3.org > January 2017

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

From: Anton Nemtsev <anton.nemtsev@vaimo.com>
Date: Tue, 3 Jan 2017 12:49:53 +0200
Message-ID: <CAG9q_WUfKexHV13dLWNTNb5GC_jQC8UKAawfiqmMf0Gi0Qu5PQ@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: Axel Dahmen <brille1@hotmail.com>, www-style <www-style@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:06 UTC