W3C home > Mailing lists > Public > www-style@w3.org > November 2010

Specifying partial property values (was: Re: [css3-background] New use case for background-position-x (&y!))

From: Jonas Hartmann <j0n4s.h4rtm4nn@googlemail.com>
Date: Wed, 10 Nov 2010 20:34:24 +0100
Message-Id: <84915C89-3ABD-47E3-B2DD-A0B9D4DE0EE2@googlemail.com>
To: Lee Kowalkowski <lee.kowalkowski@googlemail.com>, Brad Kemper <brad.kemper@gmail.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org

On 2010-11-09, at 23:51, Lee Kowalkowski wrote:
> The main point is there are situations where an author would like to
> specify -x without -y, for whatever reason, exactly like when
> specifying margin-top without interfering with margin-left defined in
> another rule.

I wondered how I can change CSS3 text-shadow-color or text-shadow-distance-top or text-shadow-distance-left or text-shadow-blur-radius


Did I miss something or is that not possible? On the argument that you can specify multiple light directions => shadows you could still offer

text-shadow: 3px 2px 1px red, 1px 2px 3px blue;
text-shadow-color: yellow, rgba(0,0,0,0.4);

(awesome would even be text-shadow-color: yellow, rgba(cascade, cascade, cascade, 0.4);)

CSS always had very good shorthands as well as full properties like padding and margin for instance.

With the browser vendors pre-standard implementations of background gradients I had the issue described above as well, I could not simply change parts of the gradient or add a background-color ex-post (for graceful degration, e.g. older browsers, lets say in my ie.css). Always having to specify a full property where a partial (with magic standard values) would be sufficient is bad.

text-shadow: red; should work as should text-shadow: 1px - or text-shadow: 1px 1px, or text-shadow: 1px 1px red - you get the idea and can probably imagine what a good default would be.

King regards

p.s.: I took a look at the spec, sorry if I did not get it right and its all in.
Received on Wednesday, 10 November 2010 19:35:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:40 UTC