2012-01-17 11:14:50 +00:00
|
|
|
@import url("reset-to-defaults.css");
|
|
|
|
|
2020-08-21 12:41:13 +00:00
|
|
|
/* One caveat that apply to cairo gradients, and make things therefore
|
2012-01-17 11:14:50 +00:00
|
|
|
* untestable:
|
|
|
|
* The start and end points must be identical when drawing
|
|
|
|
* This means that you cannot:
|
|
|
|
* ... add extra color stops, even if they'd be invisible
|
2012-11-13 20:41:08 +00:00
|
|
|
* ... mirror the gradient (ie 'to left, red, lime' vs 'to right, green, red')
|
2012-10-16 17:02:55 +00:00
|
|
|
* ... test a repeating gradient against a non repeating one
|
2012-01-17 11:14:50 +00:00
|
|
|
* and probably a bunch of other things.
|
|
|
|
* These things can cause off-by-one rounding errors in pixman (and probably
|
|
|
|
* your GPU, too) and that'd trigger test failures.
|
|
|
|
*/
|
|
|
|
#a {
|
2012-11-13 20:41:08 +00:00
|
|
|
background-image: linear-gradient(to bottom, blue 0%, lime 15px, red 100%);
|
2012-01-17 11:14:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#reference #a {
|
2012-11-13 20:41:08 +00:00
|
|
|
background-image: linear-gradient(blue, lime, red);
|
2012-01-17 11:14:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#b {
|
2012-11-13 20:41:08 +00:00
|
|
|
background-image: linear-gradient(to left, pink 0, cyan, red 0, lime 50%, blue 40px, violet -10em);
|
2012-01-17 11:14:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#reference #b {
|
2012-11-13 20:41:08 +00:00
|
|
|
background-image: linear-gradient(270deg, red, lime, blue);
|
2012-01-17 11:14:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#c {
|
2012-11-20 11:21:03 +00:00
|
|
|
background-image: linear-gradient(3.5turn, red, red 10px, lime 10px, lime 20px, red 20px, red 30px, lime 30px, lime 40px, red 40px);
|
2012-01-17 11:14:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#reference #c {
|
2012-11-20 11:21:03 +00:00
|
|
|
background-image: repeating-linear-gradient(to bottom, red, red 10px, lime 10px, lime 20px, red 20px);
|
2012-01-17 11:14:50 +00:00
|
|
|
}
|
2012-10-16 17:02:55 +00:00
|
|
|
|
|
|
|
#d {
|
2012-11-13 20:41:08 +00:00
|
|
|
background-image: repeating-linear-gradient(180deg, red, lime 10px, red 20px);
|
2012-10-16 17:02:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#reference #d {
|
2012-11-13 20:41:08 +00:00
|
|
|
background-image: repeating-linear-gradient(to bottom, red, lime 10px, red 20px);
|
2012-10-16 17:02:55 +00:00
|
|
|
}
|