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

On 9/09/2011 3:44 AM, Charles Pritchard wrote:
> On 9/8/2011 10:21 AM, Tab Atkins Jr. wrote:

>> (We've also discussed a display:transparent that would be thematically
>> similar to HTML's notion of "transparent" - the element wouldn't
>> generate a box in the box tree (similar to display:none), but its
>> children still would.)
>
> It would maintain the content box sizing, while not-showing any elements.
> Basically, the same thing that <canvas> does.
>
> canvas { content: transparent; }
>
>
> -Charles


<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.



-- 
Alan Gresley
http://css-3d.org/
http://css-class.com/

Received on Friday, 9 September 2011 01:07:37 UTC