Re: Text-Decoration

On Sun, 2 Apr 2000, L. David Baron wrote:

>
>On Fri, 31 Mar 2000, Tim Bannister wrote:
>
>> Consider this:
>> H1 { text-indent: 4em; }
>> 
>> <h1>
>>  <object data="/images/corporate_logo">
>>   Bodgitt and Scarper Plumbing
>>  </object>
>> </h1>
>> 
>> ...should the logo be indented?
>
>Yes, if the object element has 'display: inline' and is thus a replaced
>inline element within the h1 element's line box.  If the object element
>is instead a block, the image is not indented.  However, if the text is
>shown instead of the image, it would be indented since 'text-indent' is
>inherited.  See [1].

In light of this, it seems more sensible that the stylesheet that a UA
uses by default would have 'display: inline' for OBJECT (and other
replaced elements).  But that's not what the CSS2 recommendation uses.

Why's that?
[1] <footnote>
-- 
Tim Bannister - isoma@compsoc.man.ac.uk
   "Nobody can understand them. They're mysterious random things"
     - HF  

Received on Monday, 3 April 2000 09:02:58 UTC