Re: Text-Decoration

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 UTC