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

Re: [CSS21] Addition of 2 values to the visibility property

From: Brad Kemper <brkemper@comcast.net>
Date: Thu, 26 Jun 2008 18:24:29 -0700
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style@w3.org
Message-Id: <377256E1-50A3-4A36-9821-2848E185EB9D@comcast.net>
To: Zachary Weinberg <zweinberg@mozilla.com>


On Jun 26, 2008, at 5:23 PM, Zachary Weinberg wrote:

>
> ----- "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>> content: inhibit suffers from the exact same problems as the original
>> proposal, in that a user with CSS on but images off becomes nearly
>> completely unable to use the control.  Thus, using the content
>> property to
>> control this is also decidely sub-optimal.
>
> This is starting to sound like what's really wanted is a way to  
> detect from CSS whether images will be rendered.
>
> @media graphical / @media text-only, perhaps?
>
> zw
>

You could have a property on the text box like this:

{ text-replaced-by: image; }

or

{ text-replaced-by: svg }

That way, UAs that understood the property would only show the text  
part when images or svg or whatever was not available. And UAs that  
didn't understand it would still show the text. Then you could combine  
it with existing text-indent hacks too, making it no worse than  
today's UAs.
Received on Friday, 27 June 2008 01:25:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:07 GMT