W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: [css3-background] PFWG review of css3-background 2009-10-15 LCWD

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 6 Jan 2010 21:57:26 -0800
Cc: Michael Cooper <cooper@w3.org>, www-style <www-style@w3.org>, List WAI Liaison <wai-liaison@w3.org>
Message-Id: <69D18D26-C1BB-4B66-8719-DF5396BA3F37@gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>

On Jan 6, 2010, at 11:01 AM, Tab Atkins Jr. wrote:

> The first and third approach listed apply in HTML as well as CSS, and
> would allow authors to use ordinary <img> tags (with alt text) while
> gaining the performance benefits of current spriting techniques.
> 
> [...]

Add to this list border-images, which will usually be a better choice for button graphics than backgrounds (they can be more flexibly sized for variable-width buttons, with a single image and a single element, while maintaining fidelity of corner decorations). 

Also, with round corners, shadows, and gradients, a lot of the current buttons that use images today could probably do without.

> High-contrast situations should be differentiated through Media
> Queries, I would think.  This would allow you to specify different
> background images, and also different values for any other property
> that requires tweaking.

That is what I was thinking. Although there is not a current media feature for "contrast" or "reversed color", that could conceivably be added to Media Queries, Part Deux. On the Mac, there is an included System Preference panel called "Universal Access" that has a slider to adjust contrast for the whole screen (it doesn't turn off backgrounds, but it can blow them out if they are light and you pull the slider all the way to the right). You can also reverse all the colors in the display to get white on black wherever there is normally black on white. Actually, it looks to me like this does a great job on its own without changes to Web pages, but I am no expert on that.



Received on Thursday, 7 January 2010 05:58:04 GMT

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