5 <meta name=
"viewport" content=
"width=800">
7 html { font-size:
16px; }
8 body { width:
800px; margin:
0; overflow-y: hidden; }
11 <script src=
"resources/autosizingTest.js"></script>
16 <table cellpadding=
"0" cellspacing=
"0" width=
"100%">
20 This text should be autosized to
20px computed font-size (
16 *
400/
320).
<br>
21 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
22 labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
23 laboris ni si ut aliquip ex ea commodo consequat.
27 element
= document
.getElementById("firstDiv");
28 if (element
.offsetHeight
) {
34 This text should be autosized to
20px computed font-size (
16 *
400/
320).
<br>
35 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
36 labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
37 laboris ni si ut aliquip ex ea commodo consequat.
44 element
= document
.getElementById("firstDiv");
45 if (element
.offsetHeight
) {