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.
12 lines
298 B
HTML
12 lines
298 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<link rel="match" href="../expected/css-gradient-negative-first-stop-ref.html" />
|
|
<style>
|
|
div {
|
|
width: 200px;
|
|
height: 50px;
|
|
background: repeating-linear-gradient(to right, green -25%, green 0%, red 0%, red 25%);
|
|
}
|
|
</style>
|
|
<div></div>
|
|
</html>
|