Status: PASS | Duration: 59ms | Subtests: 8/8 | 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 border-color value 'currentcolor' | PASS | |
| Property border-color value 'red yellow' | PASS | |
| Property border-color value 'red yellow currentcolor' | PASS | |
| Property border-color value 'red yellow green blue' | PASS | |
| Property border-top-color value 'red' | PASS | |
| Property border-right-color value 'yellow' | PASS | |
| Property border-bottom-color value 'green' | PASS | |
| Property border-left-color value 'blue' | PASS |
/css/css-backgrounds/parsing/border-color-computed.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Backgrounds and Borders: getComputedStyle().borderColor</title> <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-color"> <meta name="assert" content="border-color computed value is the computed colors."> <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> 'use strict'; const currentColor = "rgb(0, 255, 0)"; const red = "rgb(255, 0, 0)"; const yellow = "rgb(255, 255, 0)"; const green = "rgb(0, 128, 0)"; const blue = "rgb(0, 0, 255)"; test_computed_value("border-color", "currentcolor", currentColor); test_computed_value("border-color", "red yellow", red + " " + yellow); test_computed_value("border-color", "red yellow currentcolor", red + " " + yellow + " " + currentColor); test_computed_value("border-color", "red yellow green blue", red + " " + yellow + " " + green + " " + blue); test_computed_value("border-top-color", "red", red); test_computed_value("border-right-color", "yellow", yellow); test_computed_value("border-bottom-color", "green", green); test_computed_value("border-left-color", "blue", blue); </script> </body> </html>