2 <script src=
"../../resources/testharness.js"></script>
3 <script src=
"../../resources/testharnessreport.js"></script>
4 <style type=
"text/css">
5 body
> div
{ width: 100px }
7 #stf2 { position: absolute
}
8 #stf3 { display: table-cell
}
12 <svg viewBox='
0 0 1 1'
></svg>
15 <svg viewBox='
0 0 1 1'
></svg>
18 <svg viewBox='
0 0 1 1'
></svg>
23 var r
= document
.getElementById('stf1').getBoundingClientRect();
24 assert_equals(r
.width
, 0);
25 }, "Test floated element width with replaced element with intrinsic ratio but no dimensions");
27 var r
= document
.getElementById('stf2').getBoundingClientRect();
28 assert_equals(r
.width
, 0);
29 }, "Test absolute positioned element width with replaced element with intrinsic ratio but no dimensions");
31 var r
= document
.getElementById('stf3').getBoundingClientRect();
32 assert_equals(r
.width
, 0);
33 }, "Test table cell width with replaced element with intrinsic ratio but no dimensions");