Status: FAIL | Duration: 50ms | Subtests: 0/2 | 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 |
|---|---|---|
| CSSTranslate.toMatrix() containing relative units throws TypeError | FAIL | assert_throws_js: function "() => { return new CSSTranslate( new CSSUnitValue(1, 'px'), new CSSUnitValue(1, 'em') ).toMatrix(); }" threw object "ReferenceError: CSSTranslate is not defined" ("ReferenceError") expected instance of function "function TypeError() { [native code] }" ("TypeError") |
| CSSPerspective.toMatrix() containing relative units throws TypeError | FAIL | assert_throws_js: function "() => { return new CSSPerspective(new CSSUnitValue(1, 'em')).toMatrix(); }" threw object "ReferenceError: CSSPerspective is not defined" ("ReferenceError") expected instance of function "function TypeError() { [native code] }" ("TypeError") |
/css/css-typed-om/stylevalue-subclasses/cssTransformComponent-toMatrix-relative-units.html
<!doctype html> <meta charset="utf-8"> <title>CSSTransformComponent.toMatrix with Relative Units</title> <link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-csstransformcomponent-tomatrix"> <meta name="assert" content="Test CSSTransformComponent.toMatrix throws when given relative units" /> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <script src="../resources/testhelper.js"></script> <script> 'use strict'; test(() => { assert_throws_js(TypeError, () => { return new CSSTranslate( new CSSUnitValue(1, 'px'), new CSSUnitValue(1, 'em') ).toMatrix(); }); }, 'CSSTranslate.toMatrix() containing relative units throws TypeError'); test(() => { assert_throws_js(TypeError, () => { return new CSSPerspective(new CSSUnitValue(1, 'em')).toMatrix(); }); }, 'CSSPerspective.toMatrix() containing relative units throws TypeError'); </script>