2 <html style="font-size: 16px">
4 <meta name="viewport" content="width=800">
11 .largersize{font-size: 1.1em}
13 <script src="resources/autosizingTest.js"></script>
17 This paragraph should be autosized to 40px<br/>
18 because it contains line breaks.<br/>
19 This test is intended to check<br/>
20 that there are no oscillations due to javascript<br/>
21 briefly increasing the font size of a<br/>
22 small paragraph below.
24 <div id="sizechanging" style="position: absolute; bottom: 0;">
25 This text changes size using javascript below.
28 var element = document.getElementById("sizechanging");
29 var forceLayout = element.offsetHeight;
30 element.className = 'largersize';
31 forceLayout = element.offsetHeight;
32 element.className = '';
33 forceLayout = element.offsetHeight;