5 <script src=
"../../resources/js-test.js"></script>
7 <body onload=
"runTest();">
9 description("Soft Hyphen Test");
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
)) ;
23 <div id=
"text1" style=
"width:150px; font-family:Ahem; font-size:14px; border:2px solid red">
24 <p>anti
­dis
­est
­ab
­lish
­ment
­arian
­ism.
</p>