Status: PASS | Duration: 56ms | Subtests: 7/7 | Open test on wpt.live | wpt.fyi
Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)
| Subtest | Status | Message |
|---|---|---|
| Property background-color value 'currentcolor' | PASS | |
| Property background-color value 'red' | PASS | |
| Property background-color value '#00FF00' | PASS | |
| Property background-color value 'rgb(0, 0, 255)' | PASS | |
| Property background-color value 'rgb(100%, 100%, 0%)' | PASS | |
| Property background-color value 'hsl(120, 100%, 50%)' | PASS | |
| Property background-color value 'transparent' | PASS |
/css/css-backgrounds/parsing/background-color-computed.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Backgrounds and Borders: getComputedStyle().backgroundColor</title> <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background-color"> <meta name="assert" content="background-color computed value is a computed color."> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/css/support/computed-testcommon.js"></script> <style> #target { color: lime; } </style> </head> <body> <div id="target"></div> <script> test_computed_value("background-color", "currentcolor", "rgb(0, 255, 0)"); test_computed_value("background-color", "red", "rgb(255, 0, 0)"); test_computed_value("background-color", "#00FF00", "rgb(0, 255, 0)"); test_computed_value("background-color", "rgb(0, 0, 255)"); test_computed_value("background-color", "rgb(100%, 100%, 0%)", "rgb(255, 255, 0)"); test_computed_value("background-color", "hsl(120, 100%, 50%)", "rgb(0, 255, 0)"); test_computed_value("background-color", "transparent", "rgba(0, 0, 0, 0)"); </script> </body> </html>