RE: [css3-background] Default shadow color

It seemed the 'enormous' effort that needed saving was that of choosing a color for a shadow, because it's so much more desirable to let each browser pick a different one.  

I don't get how black is better than currentColor given that it is the default color for text in most browsers; why pick a default that's will be wrong the most often ? 

If this is so critical that hair must be split then let's require a color value. Any arbitrary value will be as interoperable and arbitrary as what we have today.

I'll just note that the model that's currently implemented does, according to you, already require authors to do just that.


________________________________________
From: Brad Kemper [brad.kemper@gmail.com]
Sent: Friday, March 04, 2011 3:34 PM
To: Brian Manthos
Cc: fantasai; Estelle Weyl; Sylvain Galineau; www-style@w3.org CSS
Subject: Re: [css3-background] Default shadow color

Making it non-optional is my second choice. But that would require the enormous effort of implementors changing the value of some variable in their code. If they can do that, why not instead change the value of the constant they currently use, from "defaultColor" to something useful, like rgba(0,0,0,0.5)? Or even black. That way, if there are a few authors who wrote for a default color shadow to appear on their default text color box, they will still get a nice shadow.


Brad Kemper

On Mar 4, 2011, at 3:11 PM, Brian Manthos <brianman@Microsoft.com> wrote:

> But people are suggesting that it be required rather than optional.
>
> Which gets to the root of it...
>
> If the currently somewhat-interoperable implementation is "bad", then we should considering just making it a required parameter if we're too soft-willed to define it.
>
> Leaving this UA-defined is bad for the web 2 years from now, IMO.
>
> - Brian
>
>
>> -----Original Message-----
>> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
>> Behalf Of fantasai
>> Sent: Friday, March 04, 2011 2:10 PM
>> To: Estelle Weyl
>> Cc: Brad Kemper; Sylvain Galineau; www-style@w3.org CSS
>> Subject: Re: [css3-background] Default shadow color
>>
>> On 03/03/2011 07:52 PM, Estelle Weyl wrote:
>>> 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..
>>
>> Um, you just specify currentColor?
>>
>>   text-shadow: 0 0 1px currentColor;
>>
>> Nobody's saying this should be disallowed.
>>
>> ~fantasai
>>
>

Received on Saturday, 5 March 2011 02:11:45 UTC