Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-color/out-of-gamut-legacy-rgb.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Color 4: Out Of Gamut Legacy SRGB Color with Transparency</title> <link rel="author" title="Aaron Krajeski" href="mailto:aaronhk@chromium.org"> <link rel="help" href="https://drafts.csswg.org/css-color-4/#rgb-functions"> <link rel="match" href="out-of-gamut-legacy-rgb-ref.html"> <style> /* See crbug.com/1483736. Values above 255 were being stored for legacy colors which was causing them to be rendered a if their alphas were greater. */ body { background-color: black; } div { height: 100px; background-color: rgba(500, 500, 500, 0.5); } </style> <body> <div></div> </body>
/css/css-color/out-of-gamut-legacy-rgb-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Test Reference</title> <style> body { background-color: black; } div { height: 100px; background-color: rgba(255, 255, 255, 0.5); } </style> <body> <div></div> </body>