- From: Matthew Brealey <thelawnet@yahoo.com>
- Date: Tue, 18 Jan 2000 04:52:07 -0800 (PST)
- To: www-style <www-style@w3.org>
Text-shadow/text-decoration On perusing the section of the spec relating to text shadows, I was perplexed to find this statement: Inherited: no (see prose) So I read the prose, re-read it and read it once more. I could find neither hide nor hair of any reference to inheritance. The omitted prose would say something like (amended from text-decoration): This property is not inherited, but inline descendants of the element should be formatted with the same decoration (e.g., they should all be shadowed). The shadow should remain the same even if descendant elements have different 'color' values. However, shadows are positioned relative to the descendant rather than the ancestor. There is also is a bizarre difference in text-decoration: <blockquote cite="http://www.w3.org/TR/REC-CSS2/text.html#lining-striking-props"> If the property is specified for a block-level element, it affects all inline-level descendants of the element. If it is specified for (or affects) an inline-level element, it affects all boxes generated by the element. ... This property is not inherited, but descendant boxes of a block box should be formatted with the same decoration (e.g., they should all be underlined). The color of decorations should remain the same even if descendant elements have different 'color' values. </blockquote> The second statement is entirely inconsistent with the first - it implies that <P style="text-decoration: underline; color: red"><span style="color: green">Underlined</span></P> has red underline, whereas <SPAN style="text-decoration: underline; color: red"><span style="color: green">Underlined</span></SPAN> has green underline (since the second statement only refers to block boxes). To be correct, the statement should say: This property is not inherited, but inline descendants should be formatted with the same decoration (e.g., they should all be underlined). The color of decorations should remain the same even if descendant elements have different 'color' values. ===== ---------------------------------------------------------- From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS)) __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
Received on Tuesday, 18 January 2000 07:52:08 UTC