Project

General

Profile

Actions

Bug #22934

closed

Add fallback graphics for CSS3 background gradients

Added by Steffen Gebert over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2010-06-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

14788.diff (8.1 KB) 14788.diff Administrator Admin, 2010-06-19 14:12
14788.zip (5.5 KB) 14788.zip Administrator Admin, 2010-06-19 14:15

No data to display

Actions

Also available in: Atom PDF