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

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

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 9 Sep 2011 08:53:00 -0700
Message-Id: <B9E1DEB6-27FA-4A54-A70B-5040A9DBD3BC@gmail.com>
Cc: Charles Pritchard <chuck@jumis.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
To: Alan Gresley <alan@css-class.com>

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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:03 UTC