Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-typed-om/CSSMatrixComponent-DOMMatrix-mutable.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSSMatrixComponent's matrix attribute is mutable</title>
<meta name="author" title="Shane Stephens">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<div id="log"></div>
<script>
test(function() {
var component = new CSSMatrixComponent(new DOMMatrix());
assert_equals(component.matrix.m11, 1, 'DOMMatrix expected to be initialized to identity');
component.matrix.m11 = 2;
assert_equals(component.matrix.m11, 2, 'modification of m11 component of DOMMatrix expected to succeed');
});
</script>