Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / soft-hyphen-5.html
blob183b597c3daf4df4c1b070e991c6f9c27095bb7c
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body onload="runTest();">
8 <script>
9 description("Soft Hyphen Test");
11 function runTest() {
12 if (window.testRunner)
13 testRunner.dumpAsText();
15 // 56 is 4 * the font size (14). We're expecting the text to break up into 4 lines.
16 // 4 lines + the padding gives a div height of 92 in webkit and FF, 88 in chrome.
17 // So anything less than 56 is a FAIL.
18 var doesItPass = Boolean(document.getElementById('text1').offsetHeight > 56) ;
19 shouldBeTrue(String(doesItPass)) ;
21 </script>
23 <div id="text1" style="width:150px; font-family:Ahem; font-size:14px; border:2px solid red">
24 <p>anti&shy;dis&shy;est&shy;ab&shy;lish&shy;ment&shy;arian&shy;ism.</p>
25 </div>
27 </body>
28 </html>