mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
This implements the CSS `linear-gradient` property per the CSS-IMAGES specification: http://dev.w3.org/csswg/css-images-3/ Improves GitHub.
26 lines
450 B
HTML
26 lines
450 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- Tests that linear gradients render *something*. -->
|
|
<style>
|
|
section {
|
|
display: block;
|
|
width: 300px;
|
|
height: 150px;
|
|
border: solid black 1px;
|
|
}
|
|
#a {
|
|
background: linear-gradient(to bottom, white, black);
|
|
}
|
|
#b {
|
|
background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section id=a></section>
|
|
<section id=b></section>
|
|
</body>
|
|
</html>
|
|
|
|
|