Status: PASS | Duration: 8ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-images/linear-gradient-1.html
<!doctype html> <meta charset="utf-8"> <title>Linear gradient with some inferred positions</title> <link rel="help" href="https://drafts.csswg.org/css-images-3/#coloring-gradient-line"> <meta name="assert" content="Calculation of implicit gradient stops."> <link rel="match" href="linear-gradient-ref.html"> <style> #gradient { width: 400px; height: 300px; background-image: linear-gradient(to right, black 0%, red, gold); } </style> <div id="gradient"></div>
/css/css-images/linear-gradient-ref.html
<!doctype html> <meta charset="utf-8"> <style> #gradient { width: 400px; height: 300px; background-image: linear-gradient(to right, black 0%, red 50%, gold 100%); } </style> <div id="gradient"></div>