Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text-autosizing / font-size-change-is-observable.html
blobed9fbc6d1b43761b2c6bb25eb8105538cbc607cf
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style>
5 #autosize {
6 font-size: 10px;
8 </style>
9 <script src="resources/autosizingTest.js"></script>
10 <script>
11 function test() {
12 var autosizeContainer = document.getElementById('autosize');
13 var forceLayout = autosizeContainer.offsetWidth;
14 var computedFontSize = parseInt(window.getComputedStyle(autosizeContainer).fontSize);
15 if (computedFontSize > 10)
16 document.write('PASS');
17 else
18 document.write('FAIL. Expected a font size above 10, got ' + computedFontSize);
19 if (window.testRunner)
20 testRunner.dumpAsText();
22 </script>
23 </head>
24 <body onload="test()">
25 <div id="autosize">
26 This test passes if this text is autosized, the font size change is observable from javascript, and FAIL is not printed. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize. I'm just adding lines so this text is long enough to autosize.
27 </div>
28 </body>
29 </html>