W3C home > Mailing lists > Public > www-style@w3.org > January 2006

[CSS21] text-decoration on replaced elements that "contain text"

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Fri, 06 Jan 2006 23:10:57 -0600
Message-ID: <43BF4D61.1040706@mit.edu>
To: www-style Mailing List <www-style@w3.org>

What's the correct behavior of "text-decoration:underline" on something like a 
<input type="button" value="This is text">?  CSS2.1 says:

"If an element contains no text (ignoring white space in elements that have
'white-space' set to 'normal', 'pre-line', or 'no-wrap'), user agents must
refrain from rendering text decorations on the element."

which seems to be somewhat open to interpretation as to what "contains" means. 
See https://bugzilla.mozilla.org/show_bug.cgi?id=219516#c15 for example.

-Boris
Received on Saturday, 7 January 2006 05:11:03 GMT

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