Status: FAIL | Duration: 51ms | Subtests: 0/3 | 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 |
|---|---|---|
| Inverting a type with empty map returns the empty map | FAIL | CSSMathInvert is not defined |
| Inverting a type negates all its exponents | FAIL | CSSMathProduct is not defined |
| Inverting an inverted type returns the original type | FAIL | CSSUnitValue is not defined |
/css/css-typed-om/stylevalue-subclasses/numeric-objects/cssMathInvert-type.html
<!doctype html> <meta charset="utf-8"> <title>CSSMathInvert.type</title> <link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#type-of-a-cssmathvalue"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="../../resources/testhelper.js"></script> <body> <div id="log"> <script> 'use strict'; test(() => { const result = new CSSMathInvert(new CSSUnitValue(0, 'number')); assert_numeric_type_equals(result.type(), { }); }, 'Inverting a type with empty map returns the empty map'); test(() => { const x = new CSSMathProduct(new CSSUnitValue(0, 'px'), new CSSUnitValue(0, 's')); const result = new CSSMathInvert(x); assert_numeric_type_equals(result.type(), { length: -1, time: -1 }); }, 'Inverting a type negates all its exponents'); test(() => { const x = new CSSUnitValue(0, 'px'); const result = new CSSMathInvert(new CSSMathInvert(x)); assert_numeric_type_equals(result.type(), { length: 1 }); }, 'Inverting an inverted type returns the original type'); </script>