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

Re: Proposing content-hidden for background-image and img content

From: Philippe Wittenbergh <ph.wittenbergh@l-c-n.com>
Date: Fri, 9 Sep 2011 11:21:21 +0900
Message-Id: <5C2EC64E-E1F1-435B-AB60-77C4FBDF03C2@l-c-n.com>
To: www-style list <www-style@w3.org>

On Sep 9, 2011, at 10:07 AM, Alan Gresley wrote:

> <img src="image-x50px-y50px" alt="this is some alt text that is rather quite long">
> 
> 
> If we were to hide the image and show the alt text while maintaining the box sizing, what becomes of the overflow?
> 
> Normally when images are disabled, a box expands (vertically I believe, never really tested) to contain all the alt text.

Implementations vary (wildly) and vary depending on the size being specified (in HTML or CSS) or not
Opera - when size is specified - treats as overflow hidden
WebKit: no alt text visible
Gecko -  overflow: visible, but this only affects layout when the image is inline (default). Size is not respected in that case.

Didn't test with IE.

Here is a quick test case:
http://dev.l-c-n.com/CSS2/alt-text-missing-image.html



Philippe
--
Philippe Wittenbergh
http://l-c-n.com/
Received on Friday, 9 September 2011 02:21:55 GMT

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