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

Individual properties for text-shadow and box-shadow

From: Dave Methvin <dave.methvin@gmail.com>
Date: Fri, 20 Nov 2009 17:21:00 -0500
To: <www-style@w3.org>
Message-ID: <92F1361BB9F64063AF0849E006CA5C21@liberty>
We have a discussion thread going in the jQuery Dev group [1] about the CSS3
text-shadow property and how it might be used in jQuery. Because of the
proposed syntax for this attribute [2,3] it would be complex to parse in

For the purposes of animation and other programmatic use, it would be very
helpful to treat text-shadow as a shorthand property, then define
text-shadow-color, text-shadow-x, text-shadow-y, and text-shadow-radius as
its subcomponents. That would be consistent with other CSS shorthand
properties such as border-right or background, where the individual
components are made available via separate CSS properties. 

I am not certain how 'inset' or 'none' might be expressed given the
individual properties, perhaps with a separate text-shadow-style property
that could also take the value 'normal'.

This would presumably affect box-shadow as well, which follows the same


Dave Methvin, PCPitstop.com

[2] http://lists.w3.org/Archives/Public/www-style/2009Sep/0108.html
[3] http://lists.w3.org/Archives/Public/www-style/2009Mar/0047.html
Received on Friday, 20 November 2009 22:59:20 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:41 UTC