Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / text-autosizing / first-line-scale-factor.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta name="viewport" content="width=800">
5 <style>
6     html { font-size: 16px; }
7     body { width: 800px; margin: 0; overflow: hidden; }
8     #pseudo3::first-line { font-size: 32px; color: purple; }
9 </style>
10
11 <script>
12 if (window.internals) {
13     window.internals.settings.setTextAutosizingEnabled(true);
14     window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
15 } else {
16     console.warn("Please use DumpRenderTree to run this test.");
17 }
18 </script>
19 </head>
20 <body>
21     <div id="pseudo3">TheFirstLineOfThisTextShouldBeInPurpleAnd ShouldBeLargerThanTheRestOfTheTextAndThereShouldBeEnoughTextForTheSentenceToAutoSize. This is written without spaces so we don't have platform-specific differences in where exactly the first line cuts off.</div>
22 </body>
23 </html>