2 <script src=
"../../resources/testharness.js"></script>
3 <script src=
"../../resources/testharnessreport.js"></script>
19 .control { /* overlay to hide the red */
24 background-color: green;
29 <svg class=
"test" viewBox=
"0 0 1 1">
37 var bounds
= document
.querySelector('.test').getBoundingClientRect();
38 assert_equals(bounds
.width
, 200);
39 assert_equals(bounds
.height
, 200);
40 }, "Use available width and use intrinsic ratio to compute height");