mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
44 lines
No EOL
923 B
HTML
44 lines
No EOL
923 B
HTML
<!DOCTYPE html>
|
|
<html><head><title>CSS Variables 1: Test variables in background shorthand.</title>
|
|
<link href="mailto:lea@verou.me" rel="author" title="Lea Verou">
|
|
<link href="https://www.w3.org/TR/css-variables-1/#variables-in-shorthands" rel="help">
|
|
<link href="reference/vars-background-shorthand-001-ref.htm" rel="match">
|
|
<style>
|
|
div {
|
|
width: 50px;
|
|
height: 50px;
|
|
padding: 50px;
|
|
margin: 10px;
|
|
display: inline-block;
|
|
background: red;
|
|
}
|
|
|
|
div#d1 {
|
|
--foo: green;
|
|
background: var(--foo);
|
|
}
|
|
|
|
div#d2 {
|
|
--foo: green, green;
|
|
background: linear-gradient(var(--foo));
|
|
}
|
|
|
|
div#d3 {
|
|
--foo: linear-gradient(green, green);
|
|
background: var(--foo);
|
|
}
|
|
|
|
div#d4 {
|
|
--foo: center / 0 0;
|
|
background: green linear-gradient(red, red) var(--foo, );
|
|
}
|
|
</style>
|
|
</head><body><p>Test passes if you see four green squares, and no red.</p>
|
|
<div id="d1"></div>
|
|
<div id="d2"></div>
|
|
<div id="d3"></div>
|
|
<div id="d4"></div>
|
|
|
|
|
|
|
|
</body></html> |