Re: [css3-background] Default shadow color

Yes, it is a hack, 
but the point i am trying to make is that it is easier to declare a drop shadow of grey for all your text than to determine what color the text is if you do want to use a drop shadow that is equivalent to currentColor..

we also can't do

text-shadow: 1px 1px 1px  rgba(currentColor, 0.5);

but that may come in handy.

On Mar 3, 2011, at 7:46 PM, Brad Kemper wrote:

> 
> On Mar 3, 2011, at 7:26 PM, Estelle Weyl wrote:
> 
>> My oft used use case for text shadow is:
>> 
>> text-shadow: 0 0 1px currentColor;
>> 
>> reason: graphic designers like to use helvetica thin, which is illegible. a tiny shadow makes the text legible.
>> 
>> So, while developers can decide "I want all my drop shadows to be rgba(0,0,0,0.3) (I find 0.5 way too dark), it would be much more complex to always define the current color of the text, which could be forever changing. Grey is easy to determine. What color your text is throughout a site is much more difficult to determine.
>> 
>> 
>> I would prefer to see text shadow remain current color.
> 
> This is presumably for a user style sheet, right?
> 
> It is clearly a hack though. If there is a need for a property for thickening up the strokes of text glyphs, then we should have that property. Something like 'font-smooth: strong' perhaps.
> 
> 

Received on Friday, 4 March 2011 03:52:42 UTC