W3C home > Mailing lists > Public > www-style@w3.org > June 2012

Re: [css3-flexbox] Fixing the "replaced elements may or may not be inline" issue

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 26 Jun 2012 10:15:09 -0400
Message-ID: <4FE9C3ED.5070008@mit.edu>
To: www-style@w3.org
On 6/26/12 9:11 AM, Kang-Hao (Kenny) Lu wrote:
> which is also a bit confusing to me. How can a non-replaced element
> render an extra icon?

   img:broken::before { content: url(broken-image-icon); }

> Proposal E: An<img>  is always rendered as replaced element, no matter
> whether the image is loadable.

This makes it impossible to read the alt text for most images, in 
practice, unless the alt text is just 2-3 words.  Which is why Gecko 
switched away from that behavior.

> Proposal E': An<img>  with a 'width'/'height' attribute is always
> rendered as replaced element, no matter whether the image is loadable.

See above.

> * Authors use<img>s directly inside an element with 'display: flex;'
> * The<img>s fail to load

Say the user has image loading turned off, yes.

> * Authors don't bother to test situations when<img>s fails to load

100% guaranteed.  ;)

-Boris
Received on Tuesday, 26 June 2012 14:15:43 GMT

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