- From: Andrew Fedoniouk <news@terrainformatica.com>
- Date: Sat, 7 Jan 2006 00:16:51 -0800
- To: "Boris Zbarsky" <bzbarsky@mit.edu>, "www-style Mailing List" <www-style@w3.org>
From: "Boris Zbarsky" <bzbarsky@mit.edu> > > 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. > I have one more: consider following: p { text-decoration:underline } p > span { display: inline-block; } and markup: <p>text<span>one<br>two</span>text</p> Shall span here be underlined as single inline block or words 'one' and 'two' shall be underlined separately? And what about <select> and text-decoration:underline? Andrew Fedoniouk. http://terrainformatica.com
Received on Saturday, 7 January 2006 08:17:06 UTC