Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text-autosizing / vertical-writing-mode.html
blob20b04b008abec9422d7e5d0af2a3700a176d0d3a
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta name="viewport" content="width=800">
5 <style>
6 html {
7 font-size: 16px;
9 body {
10 -webkit-direction: ltr;
11 -webkit-writing-mode: vertical-rl;
12 width: 800px;
13 margin: 0;
14 overflow-y: hidden;
16 </style>
17 <script src="resources/autosizingTest.js"></script>
18 <script>
19 function test() {
20 var autosizeContainer = document.getElementById('autosize');
21 var forceLayout = autosizeContainer.offsetWidth;
22 var computedFontSize = parseInt(window.getComputedStyle(autosizeContainer).fontSize);
23 if (computedFontSize > 16)
24 document.write('PASS');
25 else
26 document.write('FAIL. Expected a font size above 16, got ' + computedFontSize);
27 if (window.testRunner)
28 testRunner.dumpAsText();
30 </script>
31 </head>
32 <body onload="test()">
33 <div id="autosize">
34 This test passes if this text is autosized. <br/>
35 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
36 </div>
37 </body>
38 </html>