tion expect_svg_width_and_height(width, height) {
        let rect = svgElem.getBoundingClientRect();
        assert_equals(rect.width, width, "checking width.");
        assert_equals(rect.height, height, "checking height.");
    }
    test(function() {
        expect_svg_width_and_height(300, 150);
    }, "no sizing attributes set");

    // Just setting width and/or height:
    test(function() {
        svgElem.setAttribute("width", "100");
        expect_svg_width_and_height(100, 150);
    }, "specified