5 <meta name=
"viewport" content=
"width=800">
7 html { font-size:
16px; }
8 body { width:
800px; margin:
0; overflow-y: hidden; }
12 <script src=
"resources/autosizingTest.js"></script>
18 <span style=
"white-space: pre">
19 This text is expected be autosized to
40px computed font-size (
16 *
800/
320), since Text Autosizing is not yet smart enough to detect that all the children of this div are unwrappable. Ideally it would not get autosized.
24 <span style=
"white-space: nowrap">
25 This text is expected be autosized to
40px computed font-size (
16 *
800/
320), since Text Autosizing is not yet smart enough to detect that all the children of this div are unwrappable. Ideally it would not get autosized.
30 <span style=
"white-space: pre-wrap">
31 This text should be autosized to
40px computed font-size (
16 *
800/
320) since it has white-space:pre-wrap which allows text wrapping (even though it doesn't collapse white space).
37 This text should be autosized to
40px computed font-size (
16 *
800/
320).