Status: PASS | Duration: 62ms | Subtests: 20/20 | 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 |
|---|---|---|
| e.style['border-color'] = "currentcolor" should set border-bottom-color | PASS | |
| e.style['border-color'] = "currentcolor" should set border-left-color | PASS | |
| e.style['border-color'] = "currentcolor" should set border-right-color | PASS | |
| e.style['border-color'] = "currentcolor" should set border-top-color | PASS | |
| e.style['border-color'] = "currentcolor" should not set unrelated longhands | PASS | |
| e.style['border-color'] = "red yellow" should set border-bottom-color | PASS | |
| e.style['border-color'] = "red yellow" should set border-left-color | PASS | |
| e.style['border-color'] = "red yellow" should set border-right-color | PASS | |
| e.style['border-color'] = "red yellow" should set border-top-color | PASS | |
| e.style['border-color'] = "red yellow" should not set unrelated longhands | PASS | |
| e.style['border-color'] = "red yellow green" should set border-bottom-color | PASS | |
| e.style['border-color'] = "red yellow green" should set border-left-color | PASS | |
| e.style['border-color'] = "red yellow green" should set border-right-color | PASS | |
| e.style['border-color'] = "red yellow green" should set border-top-color | PASS | |
| e.style['border-color'] = "red yellow green" should not set unrelated longhands | PASS | |
| e.style['border-color'] = "red yellow green blue" should set border-bottom-color | PASS | |
| e.style['border-color'] = "red yellow green blue" should set border-left-color | PASS | |
| e.style['border-color'] = "red yellow green blue" should set border-right-color | PASS | |
| e.style['border-color'] = "red yellow green blue" should set border-top-color | PASS | |
| e.style['border-color'] = "red yellow green blue" should not set unrelated longhands | PASS |
/css/css-backgrounds/parsing/border-color-shorthand.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS Backgrounds and Borders Module Level 3: border-color sets longhands</title> <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-color"> <meta name="assert" content="border-color supports the full grammar '<color>{1,4}'."> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/css/support/shorthand-testcommon.js"></script> </head> <body> <script> test_shorthand_value('border-color', 'currentcolor', { 'border-top-color': 'currentcolor', 'border-right-color': 'currentcolor', 'border-bottom-color': 'currentcolor', 'border-left-color': 'currentcolor' }); test_shorthand_value('border-color', 'red yellow', { 'border-top-color': 'red', 'border-right-color': 'yellow', 'border-bottom-color': 'red', 'border-left-color': 'yellow' }); test_shorthand_value('border-color', 'red yellow green', { 'border-top-color': 'red', 'border-right-color': 'yellow', 'border-bottom-color': 'green', 'border-left-color': 'yellow' }); test_shorthand_value('border-color', 'red yellow green blue', { 'border-top-color': 'red', 'border-right-color': 'yellow', 'border-bottom-color': 'green', 'border-left-color': 'blue' }); </script> </body> </html>