← back to v141 · custom-property-enumeration-in-getcomputedstyle

conformance · v141

v141 · custom-property-enumeration-in-getcomputedstyle — conformance probe

6 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.

browser: spec: https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle chromestatus: #5070655645155328 generated 2026-06-01T08:13:08Z by conformance-author-v1-subagent
0
pass
0
fail
0
blocked
6
total
id contract kind verdict detail
getcomputedstyle-exists window.getComputedStyle is a function on the global, returning a CSSStyleDeclaration. typeof
custom-property-counted-in-length After setting a custom property, the computed CSSStyleDeclaration's length includes it (Chrome's bug fix; Firefox and Safari already conformed). script
custom-property-enumerable-by-index Indexed access on getComputedStyle returns custom property names (e.g. --foo) when enumerating. script
getpropertyvalue-returns-custom-property getPropertyValue('--probe') returns the assigned value from the computed style. script
for-of-iterates-properties CSSStyleDeclaration is iterable; for...of yields property name strings. script
computed-style-item-method CSSStyleDeclaration.item(i) is callable and returns a string at the given index. script