W3C home > Mailing lists > Public > www-style@w3.org > May 2011

Re: [css3-flexbox][css3-grid] Inline replaced elements as grid items and flexbox items

From: Andrew Fedoniouk <andrew.fedoniouk@live.com>
Date: Mon, 16 May 2011 09:40:47 -0700
Message-ID: <BLU165-ds1806AB610D512D334401A5F88D0@phx.gbl>
To: "Boris Zbarsky" <bzbarsky@MIT.EDU>, <www-style@w3.org>
-----Original Message----- 
>From: Boris Zbarsky Sent: Monday, May 16, 2011 9:13 AM To: www-style@w3.org 
>Subject: Re: [css3-flexbox][css3-grid] Inline replaced elements as grid 
>items and flexbox items
>On 5/16/11 11:37 AM, Alex Mogilevsky wrote:
>> Default UA stylesheets are not normative. Whatever they say,<img>  is
>inline-block by default, "display:inline" on image and on other replaced
>elements means "display:inline-block".
>
>No, it does not.  If you then look at the computed style, it'll come back 
>as "inline", not "inline-block".
>
>Now the _rendering_ is the same for replaced elements whether they're 
>inline-block or not... mostly.  For replaced elements with nontrivial 
>baselines, even that's not clear.  But that's a consequence of the spec 
>explicitly having different layout rules for replaced and non-replaced 
>display:inline elements.
>

As far as I understand "different layout rules for replaced and non-replaced
display:inline elements" are there for the legacy "pre-inline-block" 
reasons.

Do you know any differences in handling and rendering of
<img style="display:inline"> and <img style="display:inline-block"> ?
The same question is about <object>, <button> and other inputs.

-- 
Andrew Fedoniouk

http://terrainformatica.com 
Received on Monday, 16 May 2011 16:41:19 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:40 GMT