On 1/01/2011 3:15 PM, Tim Climis wrote:
On Friday, December 31, 2010 08:01:36 pm Philippe Wittenbergh wrote:
On Jan 1, 2011, at 9:19 AM, Colin (Sandy) Pittendrigh wrote:
I put some experimental text-shadow codes in a css file that *seems* to
work as intended in
Firefox, Chrome and IE8. Not sure about IE7 just yet.


If it's really working for you in IE8, we'd all really love to know how.

IE 8 and older do _not_ support the text-shadow property (and IE 9b doesn't
support it either, afaik).


Yeah... which is really strange, because IE9b has box-shadow support -- just
not text-shadow.  Does anyone know why that is?

Also, wasn't text-shadow in the CSS level 2 spec (and then taken out for 2.1)
or am I misremembering that?

---Tim


It was taken out for a while since Safari had implemented the old syntax and the CSS WG though it would be better to leave it out of CSS2.1 since it was being worked on as CSS3.


See the spec and note the following question in red.

<http://dev.w3.org/csswg/css3-text/#text-shadow>

  | Should shadows be clipped to the glyph edges, like ‘box-shadow’
  | is clipped to the box edges, or should it be painted completely
  | underneath the text. (This makes a difference when the text is
  | partially transparent.)


I myself said on the CSS WG list that they should. It was good to have backup from David Hyatt.


Here is a simple example showing that the shadow is seen through the glyph edges.

<http://css-class.com/test/css/shadows/text-shadow1.htm>


Here are two quite elaborate examples.

<http://css-class.com/test/css/shadows/text-shadow2.htm>

<http://css-class.com/test/css/shadows/text-shadow-over-elements1.htm>


After 2 or 3 years of this in the wild, I presume that text shadows will be seen through transparent text.

I presume the developers of IE are waiting for a formal decision from the CSS WG about the transparent issue and also text-shadow with inset or maybe they could only implement so much in a year or so.


--
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to