mirror of
https://github.com/servo/servo
synced 2026-05-09 16:42:16 +02:00
This implements the CSS `linear-gradient` property per the CSS-IMAGES
specification:
http://dev.w3.org/csswg/css-images-3/
Improves GitHub.
23 lines
363 B
HTML
23 lines
363 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- Tests that linear gradient lengths work. -->
|
|
<style>
|
|
section {
|
|
display: block;
|
|
width: 100px;
|
|
height: 100px;
|
|
border: solid black 1px;
|
|
}
|
|
#a {
|
|
background: linear-gradient(to right, white, white 30%, black 30%, black);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<section id=a></section>
|
|
<section id=b></section>
|
|
</body>
|
|
</html>
|
|
|