Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / text-container-bounding-rect.html
blob530b29d39f089f4f92ce1e6742d69ca9d6eb01df
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <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.')
7 if (self.testRunner)
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");
15 </script>
16 </head>
17 <body>
18 <div id="testdiv" style="width: -webkit-fit-content">
19 <span id="testspan" style="font-size: 15px">Some text</span>
20 </div>
21 </body>
22 </html>