Re: [Bug 19010] New: Flag styling does not degrade gracefully and is broken in FF

Lea wrote:

> The flags are rectangular in Firefox. Moreover, in browsers that don’t support
> border-image, there is no fallback, resulting in white text over pink which is
> incredibly hard to read.

> I'd suggest we use a CSS gradient for them, which will degrade gracefully in
> older browsers. The browser support for CSS gradients is similar or better to
> that of border-image.

If you want the same effect as is already used, you could always just chop the left and right edges of the flags up into two separate images, and include those on the flags as multiple background images, one positioned left and one positioned right. Then you could include a solid background colour as a separate property, for older browsers to fallback to. 

Chris Mills
Open standards evangelist and dev.opera.com editor, Opera Software
Co-chair, web education community group, W3C
Author of "Practical CSS3: Develop and Design" (http://my.opera.com/chrismills/blog/2012/07/12/practical-css3-my-book-is-finally-published)

* Try Opera: http://www.opera.com
* Learn about the latest open standards technologies and techniques: http://dev.opera.com
* Contribute to web education: http://www.w3.org/community/webed/

Received on Wednesday, 26 September 2012 10:14:01 UTC