Automatic update from web-platform-tests Fix carry-forward of missing components for gradients According to the spec[1]: 1. checking the two colors for analogous components which will be carried forward. 2.converting them to a given color space which will be referred to as the interpolation color space below. If one or both colors are already in the interpolation colorspace, this conversion changes any powerless components to missing values. 3.(if required) re-inserting carried-forward values in the converted colors. [1]https://www.w3.org/TR/css-color-4/#interpolation Fixed: 402308043 Change-Id: I8b2f90f4f29782196eae2f329f04b1c65eacf2d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6342332 Reviewed-by: Aaron Krajeski <aaronhk@chromium.org> Auto-Submit: Jason Leo <m.jason.liu@gmail.com> Commit-Queue: Aaron Krajeski <aaronhk@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/main@{#1430988} -- wpt-commits: 25a51acc04706b7acd69ed3219cced98c22d686a wpt-pr: 51266
25 lines
808 B
HTML
25 lines
808 B
HTML
<!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">
|
|
<style>
|
|
.test {
|
|
margin: 10px 50px;
|
|
width: 200px;
|
|
height: 50px;
|
|
border: 1px solid black;
|
|
background: lime;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="test test1">This should be a lime background.</div>
|
|
<div class="test test2">This should be a lime background.</div>
|
|
<div class="test test3">This should be a lime background.</div>
|
|
</body>
|
|
</html>
|