Automatic update from web-platform-tests Fix ResolveStopColorWithMissingParams logic When the color stop have different colorspace with the neighbor, the components is mixing with each other, which is clearly wrong. This patch will convert the neighbor to the same colorspace with the one is been resolved first. Bug: 399046941 Change-Id: Icb6d8aff43c8d8301a274025dde3749e2e929d0b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6288130 Auto-Submit: Jason Leo <m.jason.liu@gmail.com> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Aaron Krajeski <aaronhk@chromium.org> Cr-Commit-Position: refs/heads/main@{#1424834} -- wpt-commits: eb3f90649e8a2361cfdd8cf053ae0522356cd082 wpt-pr: 50950
21 lines
585 B
HTML
21 lines
585 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Gradient interpolation</title>
|
|
<link rel="author" title="CGQAQ" href="mailto:m.jason.liu@gmail.com">
|
|
<link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation">
|
|
<style>
|
|
.test {
|
|
width: 100px;
|
|
height: 100px;
|
|
/* none should not resolve to 40% */
|
|
/* hsl(180 50% 40%) in rgb is color(srgb 0.2 0.6 0.6) which is 60% of b component */
|
|
background: linear-gradient(90deg in srgb, color(srgb 0 0 60%), hsl(180 50% 40%));
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="test"></div>
|
|
</body>
|
|
</html>
|