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

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 UTC