ladybird/Tests/LibWeb/Ref/expected/css-gradient-negative-first-stop-ref.html
Tim Ledbetter de9fbf1679 LibWeb: Honor explicit first and last color stop positions in gradients
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.
2026-05-30 15:44:50 +01:00

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>