Re: [css-d] text-shadow

2011-01-01 Thread Colin (Sandy) Pittendrigh
Ok. I typed at the keyboard too soon yesterday and said *text-shadow* seemed
to work in IE8
when it does not.

Further, if I validate my css as CSS3 there are no reported errors (even
when using text-shadow)
Does this mean I can use text-shadow without side effect?
ie IE will ignore it while most of the others will use it?
Or is there some danger of tripping IE into quirks mode? (if I do continue
to use text-shadow)?

In HTML we can (and should) announce the HTML DOCTYPE. I'm not aware of any
similar
mechanism to announce CSS level. Is there one?

.bshadow {
 color : white;
text-shadow : #22 1px 1px 0
}



-- 

/*  Colin (Sandy) Pittendrigh  --oO0 */
__
css-discuss [cs...@lists.css-discuss.org]
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/


[css-d] text-shadow

2010-12-31 Thread Colin (Sandy) Pittendrigh
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.

.bshadow
{
  color: white;
  text-shadow: #22 1px 1px 0px;
}

So, although the browsers seem to honor it, the w3c validator
complains: Property text-shadow doesn't exist in CSS level 2.1 but exists in
: #ff 1px 1px 0 #ff 1px 1px 0 #ff 1px 1px 0 #ff 1px 1px 0

I'm not sure what the issues are here.

-- 

/*  Colin (Sandy) Pittendrigh  --oO0 */
__
css-discuss [cs...@lists.css-discuss.org]
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/


Re: [css-d] text-shadow

2010-12-31 Thread Philippe Wittenbergh

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.

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

 .bshadow
 {
  color: white;
  text-shadow: #22 1px 1px 0px;
 }
 
 So, although the browsers seem to honor it, the w3c validator
 complains: Property text-shadow doesn't exist in CSS level 2.1 but exists in
 : #ff 1px 1px 0 #ff 1px 1px 0 #ff 1px 1px 0 #ff 1px 1px 0
 
 I'm not sure what the issues are here.

The validator is correct: the text-shadow property is part of the CSS 3 text 
module (not CSS 2.1)
http://www.w3.org/TR/css3-text/#text-shadow

When you validate you stylesheet, you have to choose the correct css level, 
under options.
http://jigsaw.w3.org/css-validator/#validate_by_uri+with_options

The rest of the error output is a bug in the validator, see the recent thread 
'W3C CSS Validation Service'

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





__
css-discuss [cs...@lists.css-discuss.org]
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/


Re: [css-d] text-shadow

2010-12-31 Thread Alan Gresley

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 [cs...@lists.css-discuss.org]
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/


Re: [css-d] text-shadow

2010-12-31 Thread Colin (Sandy) Pittendrigh



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



It probably isn't working on IE8.  I boot Microflaccid as infrequently as I
can get away with.
If it looks at all acceptable I usually breath a sigh of relief, take the
clothes
pin off my nose and KVM back to Linux or Mac.  Sorry for passing bad
information
on a holiday.

:-((

-- 

/*  Colin (Sandy) Pittendrigh  --oO0 */
__
css-discuss [cs...@lists.css-discuss.org]
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/


Re: [css-d] text-shadow

2010-12-31 Thread Philippe Wittenbergh

On Jan 1, 2011, at 1:15 PM, Tim Climis wrote:

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

Probably because CSS3-text is still a draft, whereas CSS3 backgrounds and 
borders is basically CR.
(I expect rather fast progress if 2011 on CSS3 text and CSS3 writing-modes, 
given that epub 3.0 relies on it and is supposed to be released in spring 2011)

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

Yes.
http://www.w3.org/TR/2008/REC-CSS2-20080411/text.html#propdef-text-shadow

(removed due to lack of implementations at the time, I suppose)

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





__
css-discuss [cs...@lists.css-discuss.org]
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/