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

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

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sat, 7 Jan 2006 00:16:51 -0800
Message-ID: <004f01c61362$b6830380$3201a8c0@Terra>
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:


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.
Received on Saturday, 7 January 2006 08:17:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:22 UTC