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

Sent from my iPad

On Sep 8, 2011, at 10:54 PM, Alan Gresley <alan@css-class.com> wrote:

> On 9/09/2011 11:36 AM, Brad Kemper wrote:
>> 
>> 
>> On Sep 8, 2011, at 6:07 PM, Alan Gresley<alan@css-class.com>  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?
>> 
>> I would expect it to be as though the image bounds had
>> 'overflow:visible' on it, so it wouldn't create layout differences.
> 
> 
> So you are suggesting that the overflowing text should overlap other content.

Yeah, with a solid white background.

> I see Boris sees the same dilemma by saying "That would make the text unreadable in many cases."
> 
> I will add that this somewhat destroys the reasons for wanting this property and value in the first place.

Well, there is always going to be some tradeoffs involved. Maybe the image is 'overflow: hidden' until you hover over it. I'm thinking layout shouldn't be altered for cases like below: 

<img src='spacer.gif' alt='I was put here by an author who's never heard of margin:1px' width=1 height=1>

<img src='g.gif' alt='tracking beacon for xyz.com' width=1 height=1>
> 

Received on Friday, 9 September 2011 15:53:33 UTC