Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / text-autosizing / pseudo-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     #pseudo1:first-letter { font-size: 32px; color: red; }
9     #pseudo2::before { font-size: 32px; content: "Before!"; color: green; }
10     #pseudo2::after { font-size: 32px; content: "After!"; color: blue; }
11 </style>
12
13 <script>
14 if (window.internals) {
15     window.internals.settings.setTextAutosizingEnabled(true);
16     window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
17 } else {
18     console.warn("Please use DumpRenderTree to run this test.");
19 }
20 </script>
21 </head>
22 <body>
23     <div id="pseudo1">This sentence should start with a big letter 'T' for the first letter in the color red. There should be enough text for the sentence to autosize.</div>
24     <div id="pseudo2">This text should have the word 'Before!' in big text in the color green before it and the word 'After!' in big text in the color blue after it.</div>
25 </body>
26 </html>