W3C home > Mailing lists > Public > www-style@w3.org > March 2000

Re: Text-Decoration

From: Tim Bannister <isoma@compsoc.man.ac.uk>
Date: Fri, 31 Mar 2000 16:36:47 +0100 (GMT)
To: Matthew Brealey <webmaster@richinstyle.com>
cc: www-style <www-style@w3.org>
Message-ID: <Pine.LNX.4.21.0003311631230.28827-100000@mrbusy.compsoc.man.ac.uk>
On Fri, 31 Mar 2000, Matthew Brealey wrote:

[fairly large snip]

>> This can become more obvious when you think of inline vector graphics
>> used to extend the glyph set -- for example:
>> 
>>    del { text-decoration: line-through; }
>>    img { height: 1em; }
>> 
>>    <del>
>>       The singer changed his name to
>>       <img src="symbol.svg" alt="a funny symbol">.
>>    </del>
>> 
>> To the reader, the image is just part of the flow of text -- it would
>> look incredibly odd if it was not struck out. I respectively suggest
>> that a case where an image should not be affected by its parent text
>> decoration is probably one where the markup was not semantic enough.
>
>That's all very well but using graphics, even if they are svg, as text
>is not really terribly semantic (it's not really much better than spacer
>gifs and text buttons made from images). In any case CSS doesn't say
>that images should; if you think that they should then propose a change
>to the specification so that it conforms to what you think is
>attractive.


Consider this:
H1 { text-indent: 4em; }

<h1>
 <object data="/images/corporate_logo">
  Bodgitt and Scarper Plumbing
 </object>
</h1>

...should the logo be indented?

Also, if the style attribute of the <h1> element were
"text-align: right" instead, should the logo be aligned to the right?

-- 
Tim Bannister - isoma@compsoc.man.ac.uk
   When you've seen one nuclear war, you've seen them all.
Received on Friday, 31 March 2000 10:36:51 GMT

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