This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
test(function() { assert_throws(new TypeError(), function() { new DOMRect(1); }); },'testConstructor1'); test(function() { assert_throws(new TypeError(), function() { new DOMRect(1, 2); }); },'testConstructor2'); test(function() { assert_throws(new TypeError(), function() { new DOMRect(1, 2, 3); }); },'testConstructor3'); … but the spec’s IDL marks parameters optional and gives them a default value. The tests should probably be updated.
https://github.com/w3c/csswg-test/pull/834