W3C home > Mailing lists > Public > www-style@w3.org > April 2001

Text-decoration and IMG

From: Rijk van Geijtenbeek <rijk@iname.com>
Date: Wed, 11 Apr 2001 22:21:06 +0200
Message-ID: <163516395.20010411222106@iname.com>
To: www-style@w3.org
Hi all,

On http://www.meyerweb.com/eric/css/tests/css2/sec16-03-01.htm I read:

  "Text decorations only apply to the text of an element, so the image
  at the end of this sentence should not be overlined: [img].  The
  underline of the parent element should hold true beneath the image,
  however, since text-decoration 'spans' child elements."   

Doesn't the spec simply mean to say that IMG can not have
text-decoration, so the second part of the paragraph above is
mistaken?

The CSS2 spec says on text-decoration [1]:
  "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.  If the element has no content or no text content
  (e.g., the IMG element in HTML), user agents must ignore this
  property."  

  


[1] http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-decoration


Greetings,
 Rijk                          mailto:rijk@iname.com

Mot du Jour:
It's not the bullet that kills you, it's the hole.
Received on Wednesday, 11 April 2001 16:19:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:09 GMT