mirror of
https://github.com/servo/servo.git
synced 2025-06-10 17:43:16 +00:00
This implements the CSS `linear-gradient` property per the CSS-IMAGES specification: http://dev.w3.org/csswg/css-images-3/ Improves GitHub.
28 lines
533 B
HTML
28 lines
533 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- Tests that parsing linear gradients works. -->
|
|
<style>
|
|
section {
|
|
display: block;
|
|
width: 100px;
|
|
height: 100px;
|
|
border: solid black 1px;
|
|
}
|
|
#a {
|
|
background: linear-gradient(to left, red, red);
|
|
}
|
|
#b {
|
|
background: linear-gradient(#abacab, #abacab);
|
|
}
|
|
#c {
|
|
background: linear-gradient(90deg, violet, violet 1em, violet 2ex, violet 50%, blue 50%, blue, blue);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section id=a></section>
|
|
<section id=b></section>
|
|
<section id=c></section>
|
|
</body>
|
|
</html>
|