-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathgradient-analogous-missing-components-004.html
44 lines (44 loc) · 1.66 KB
/
gradient-analogous-missing-components-004.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gradient analogous missing components carry forward logic tests</title>
<link rel="author" title="CGQAQ" href="mailto:m.jason.liu@gmail.com">
<link rel="author" title="一丝" href="mailto:yiorsi@gmail.com">
<link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation">
<meta name="assert" content="Tests that analogous missing components logic works.">
<link rel="match" href="gradient-analogous-missing-components-004-ref.html">
<style>
div {
display: flex;
align-items: center;
width: 200px;
height: 50px;
background: red;
}
.test1 {
background: linear-gradient(to right in oklab, rgb(none 255 0), rgb(255, 0, 0) );
}
.test2 {
background: linear-gradient(to right in oklab, rgb(none 255 0), rgb(255 none 0) );
}
.test3 {
background: linear-gradient(to right, rgb(none 255 0), rgb(255 none 0) );
}
.test4 {
background: linear-gradient(to right, rgb(none 255 0), rgb(255, 0, 0) );
}
.test5 {
background: linear-gradient(to right in oklab, rgb(0 255 0), rgb(255 0 0) );
}
</style>
</head>
<body>
<p>The background of all boxes should use the oklab color space, with a gradient from lime to red.</p>
<div class="test1">rgb() contains none</div>
<div class="test2">rgb() contains none</div>
<div class="test3">rgb() contains none</div>
<div class="test4">rgb() contains none</div>
<div class="test5">rgb() contains none</div>
</body>
</html>