Issue Bug Closed

#22934Add fallback graphics for CSS3 background gradients

Steffen Gebert 06/19/10, 13:38 updated 07/02/10, 11:13

Description

We currently use CSS3 gradients in some places:

background-image: linear-gradient(center top, #ffffff 0px, #ececec 100px);
background-image: -moz-linear-gradient(center top, #ffffff 0px, #ececec 100px);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0px, #ffffff), color-stop(100px, #ececec));

For browsers like IE or Opera, which cannot deal with gradients, the defined background-color is used.
A better fallback is to define the gradient as graphic (url(..)) at the first place and then follow with the (-moz|-webkit)linear-gradient definitions.

  • Incompatible browsers will ignore the gradient definition and load the image file
  • Compatible browser will ignore the file (and thus spent HTTP requests), but show the gradient as defined in CSS.

(issue imported from #M14788)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.