Status: PASS | Duration: 100ms | Subtests: 64/64 | 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-attachment has initial value scroll | PASS | |
| Property background-attachment does not inherit | PASS | |
| Property background-clip has initial value border-box | PASS | |
| Property background-clip does not inherit | PASS | |
| Property background-color has initial value rgba(0, 0, 0, 0) | PASS | |
| Property background-color does not inherit | PASS | |
| Property background-image has initial value none | PASS | |
| Property background-image does not inherit | PASS | |
| Property background-origin has initial value padding-box | PASS | |
| Property background-origin does not inherit | PASS | |
| Property background-position has initial value 0% 0% | PASS | |
| Property background-position does not inherit | PASS | |
| Property background-position-x has initial value 0% | PASS | |
| Property background-position-x does not inherit | PASS | |
| Property background-position-y has initial value 0% | PASS | |
| Property background-position-y does not inherit | PASS | |
| Property background-repeat has initial value repeat | PASS | |
| Property background-repeat does not inherit | PASS | |
| Property background-size has initial value auto | PASS | |
| Property background-size does not inherit | PASS | |
| Property border-bottom-color has initial value rgb(2, 3, 4) | PASS | |
| Property border-bottom-color does not inherit | PASS | |
| Property border-bottom-left-radius has initial value 0px | PASS | |
| Property border-bottom-left-radius does not inherit | PASS | |
| Property border-bottom-right-radius has initial value 0px | PASS | |
| Property border-bottom-right-radius does not inherit | PASS | |
| Property border-bottom-style has initial value none | PASS | |
| Property border-bottom-style does not inherit | PASS | |
| Property border-bottom-width has initial value 3px | PASS | |
| Property border-bottom-width does not inherit | PASS | |
| Property border-image-outset has initial value 0 | PASS | |
| Property border-image-outset does not inherit | PASS | |
| Property border-image-repeat has initial value stretch | PASS | |
| Property border-image-repeat does not inherit | PASS | |
| Property border-image-slice has initial value 100% | PASS | |
| Property border-image-slice does not inherit | PASS | |
| Property border-image-source has initial value none | PASS | |
| Property border-image-source does not inherit | PASS | |
| Property border-image-width has initial value 1 | PASS | |
| Property border-image-width does not inherit | PASS | |
| Property border-left-color has initial value rgb(2, 3, 4) | PASS | |
| Property border-left-color does not inherit | PASS | |
| Property border-left-style has initial value none | PASS | |
| Property border-left-style does not inherit | PASS | |
| Property border-left-width has initial value 3px | PASS | |
| Property border-left-width does not inherit | PASS | |
| Property border-right-color has initial value rgb(2, 3, 4) | PASS | |
| Property border-right-color does not inherit | PASS | |
| Property border-right-style has initial value none | PASS | |
| Property border-right-style does not inherit | PASS | |
| Property border-right-width has initial value 3px | PASS | |
| Property border-right-width does not inherit | PASS | |
| Property border-top-color has initial value rgb(2, 3, 4) | PASS | |
| Property border-top-color does not inherit | PASS | |
| Property border-top-left-radius has initial value 0px | PASS | |
| Property border-top-left-radius does not inherit | PASS | |
| Property border-top-right-radius has initial value 0px | PASS | |
| Property border-top-right-radius does not inherit | PASS | |
| Property border-top-style has initial value none | PASS | |
| Property border-top-style does not inherit | PASS | |
| Property border-top-width has initial value 3px | PASS | |
| Property border-top-width does not inherit | PASS | |
| Property box-shadow has initial value none | PASS | |
| Property box-shadow does not inherit | PASS |
/css/css-backgrounds/inheritance.sub.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Inheritance of CSS Backgrounds and Borders properties</title> <link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#property-index"> <link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#property-index"> <meta name="assert" content="Properties inherit or not according to the spec."> <meta name="assert" content="Properties have initial values according to the spec."> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="/css/support/inheritance-testcommon.js"></script> </head> <body> <div id="reference"></div> <!-- container and target are used by the functions in inheritance-testcommon.js --> <div id="container"> <div id="target"></div> </div> <style> #reference { column-rule-style: dotted; /* Avoid column-rule-width computed style 0px */ column-rule-width: medium; } #container { border-style: solid; /* Avoid border-*-width computed style 0px */ } #target { border-style: solid; /* Avoid border-*-width computed style 0px */ } </style> <script> const transparentColor = 'rgba(0, 0, 0, 0)'; // https://www.w3.org/TR/css-color-3/#transparent const mediumWidth = '3px'; // https://www.w3.org/TR/css-backgrounds-3/#valdef-line-width-medium const currentColor = 'rgb(2, 3, 4)'; container.style.color = currentColor; // assert_not_inherited accepts: property name, expected initial value, another value the property supports. assert_not_inherited('background-attachment', 'scroll', 'fixed'); assert_not_inherited('background-clip', 'border-box', 'padding-box'); assert_not_inherited('background-color', transparentColor, 'rgb(42, 53, 64)'); assert_not_inherited('background-image', 'none', 'url("https://{{host}}/")'); assert_not_inherited('background-origin', 'padding-box', 'content-box'); assert_not_inherited('background-position', '0% 0%', '10px 20px'); assert_not_inherited('background-position-x', '0%', '10px'); assert_not_inherited('background-position-y', '0%', '20px'); assert_not_inherited('background-repeat', 'repeat', 'space round'); assert_not_inherited('background-size', 'auto', 'contain'); assert_not_inherited('border-bottom-color', currentColor, 'rgb(42, 53, 64)'); assert_not_inherited('border-bottom-left-radius', '0px', '5px 7%'); assert_not_inherited('border-bottom-right-radius', '0px', '5px 7%'); assert_not_inherited('border-bottom-style', 'none', 'dashed'); assert_not_inherited('border-bottom-width', mediumWidth, '10px'); assert_not_inherited('border-image-outset', '0', '1px 2px 3px 4px'); assert_not_inherited('border-image-repeat', 'stretch', 'repeat round'); assert_not_inherited('border-image-slice', '100%', '1% 2% 3% 4% fill'); assert_not_inherited('border-image-source', 'none', 'url("https://{{host}}/")'); assert_not_inherited('border-image-width', '1', '1px 2px 3px 4px'); assert_not_inherited('border-left-color', currentColor, 'rgb(42, 53, 64)'); assert_not_inherited('border-left-style', 'none', 'dashed'); assert_not_inherited('border-left-width', mediumWidth, '10px'); assert_not_inherited('border-right-color', currentColor, 'rgb(42, 53, 64)'); assert_not_inherited('border-right-style', 'none', 'dashed'); assert_not_inherited('border-right-width', mediumWidth, '10px'); assert_not_inherited('border-top-color', currentColor, 'rgb(42, 53, 64)'); assert_not_inherited('border-top-left-radius', '0px', '5px 7%'); assert_not_inherited('border-top-right-radius', '0px', '5px 7%'); assert_not_inherited('border-top-style', 'none', 'dashed'); assert_not_inherited('border-top-width', mediumWidth, '10px'); assert_not_inherited('box-shadow', 'none', 'rgb(42, 53, 64) 1px 2px 3px 4px'); </script> </body> </html>