When resolving the used positions of color stops, we were unconditionally overwriting the first position with 0% and the last position with 100%. We now only set these default values for color stops without an explicit position.
11 lines
257 B
HTML
11 lines
257 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<style>
|
|
div {
|
|
width: 200px;
|
|
height: 50px;
|
|
background: linear-gradient(to right, red 0, red 50px, green 50px, green 100px, red 100px, red 150px, green 150px, green 200px);
|
|
}
|
|
</style>
|
|
<div></div>
|
|
</html>
|