3 <script src=
"../../resources/js-test.js"></script>
5 description('<a href="crbug.com/454760">Bug 454760</a>: getBoundingClientRect() on a container may be smaller than getBoundingClientRect() on the text it contains.')
8 self
.testRunner
.setTextSubpixelPositioning(true);
10 window
.onload = function() {
11 divrect
= document
.getElementById("testdiv").getBoundingClientRect();
12 spanrect
= document
.getElementById("testspan").getBoundingClientRect();
13 shouldBeGreaterThanOrEqual("divrect.width", "spanrect.width");
18 <div id=
"testdiv" style=
"width: -webkit-fit-content">
19 <span id=
"testspan" style=
"font-size: 15px">Some text
</span>