W3C home > Mailing lists > Public > www-style@w3.org > September 2008

Re: [CSS21] display:block nested inside display:inline = display:inline-block ?

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Sun, 7 Sep 2008 13:06:19 +0200
Message-ID: <4C0D98B73457443590C9491883541344@fremycompany>
To: "Anton Prowse" <prowse@moonhenge.net>, <www-style@w3.org>

In my opinion, we have well a block element :

    aaa<inline>bbb<block>ccc</block>ddd/</inline>eee

Is rendered :

    aaabbb
    ccc
    dddeee

As we had got :

    aaa<inline:not-boxed><inline>bbb</inline><block>ccc</block><inline>ddd</inline></inline:not-boxed>eee

Fremy
--------------------------------------------------
From: "Anton Prowse" <prowse@moonhenge.net>
Sent: Sunday, September 07, 2008 11:48 AM
To: <www-style@w3.org>
Subject: [CSS21] display:block nested inside display:inline = 
display:inline-block  ?

>
> I may just be being unobservant but I can't seem to find anything in the 
> CSS2.1 spec stating the formatting behaviour when an element with 
> display:block is the child of an element with display:inline.
>
> An oft-seen example is <a><img></a> where img has been given 
> display:block.
>
> What is the formatting model for this situation? Is the display:block 
> element treated as display:inline-block (or even has its computed value 
> changed to this)?
>
> Cheers,
> Anton Prowse
> http://dev.moonhenge.net
> 
Received on Sunday, 7 September 2008 11:06:59 GMT

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