33 lines
998 B
HTML
33 lines
998 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Gradient powerless hue component converting tests</title>
|
|
<link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation">
|
|
<style>
|
|
.test {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 200px;
|
|
height: 50px;
|
|
position: relative;
|
|
border: 1px solid black;
|
|
margin: 10px;
|
|
background-image: linear-gradient(to right in hsl, red, hsl(120deg 100% 50% / 0%) );
|
|
}
|
|
|
|
.info {
|
|
position: absolute;
|
|
right: -10px;
|
|
transform: translateX(100%);
|
|
}
|
|
</style>
|
|
</head>
|
|
<p>They should be the same as the first box.</p>
|
|
<ol>
|
|
<li class="test"><div class="info">hsl() Expected</div></li>
|
|
<li class="test"><div class="info">rgba()</div></li>
|
|
<li class="test"><div class="info">hwb()</div></li>
|
|
<li class="test"><div class="info">color()</div></li>
|
|
</ol>
|
|
</html>
|