Re: Inline formatting model document

>From: Ian Hickson <py8ieh@bath.ac.uk>
>Date: Thu, Jan 27, 2000, 1:40 PM
>
>
> On Wed, 26 Jan 2000, Matthew Brealey wrote:
>>> I know that neither Opera not Mozilla currently underline images as
>>> they should.
>> No no no.
>
> Yes yes yes. ;-)
>
> If 'text-decoration' is applied to a SPAN element which contains,
> amongst other things, some text, then all the contents of the SPAN
> should be underlined, since the underlining spans all descendants.
>
> Thus:
>
>    <span style="text-decoration: underline">
>       <em>some text</em>
>       <img src="..." alt="an image">
>       <em>some text</em>
>    </span>
>
> ...would result in:
>
>    some text [X] some text
>    -----------------------
>
> ...and not:
>
>    some text [X] some text
>    ----------   ----------
>
> Note that the EM and IMG elements do not have 'text-decoration' set.
> The underlining does not apply to the IMG element at all, since it is
> not _set_ on the IMG element.

Yes, Ian is correct.

This is how text-decoration works in CSS-1 and CSS-2.  In fact, this case is
tested in the CSS-1 test suite.

http://www.w3.org/Style/CSS/Test/current/sec543.htm

>On Wed, 26 Jan 2000, Matthew Brealey wrote:
>> I know that neither Opera not Mozilla currently underline images as
>> they should.

When making statements like that, at a minimum out of respect for the
implementers, you really should check the CSS1 test suite first to see if it
agrees (or perhaps even helps demonstrate) your assessment.  If you disagree
with the CSS1 test suite (which has been worked on long and hard by many many
CSS experts), bring that up and also send mail to css-test@w3.org

Thanks,

Tantek

Received on Thursday, 27 January 2000 18:09:55 UTC