1 <pre id="console"></pre>
3 if (window.layoutTestController)
4 layoutTestController.dumpAsText();
8 document.getElementById("console").appendChild(document.createTextNode(message + "\n"));
11 function test(declaration, expectedHyphenateLimit)
13 var element = document.createElement("div");
14 element.style.cssText = declaration;
15 var hyphenateLimit = element.style.webkitHyphenateLimitLines;
16 if (hyphenateLimit === expectedHyphenateLimit)
17 log("PASS: '" + declaration + "' parsed as '" + hyphenateLimit + "'");
19 log("FAIL: '" + declaration + "' parsed as '" + hyphenateLimit + "'");
22 test('-webkit-hyphenate-limit-lines: initial;', 'initial');
23 test('-webkit-hyphenate-limit-lines: inherit;', 'inherit');
24 test('-webkit-hyphenate-limit-lines: no-limit;', 'no-limit');
25 test('-webkit-hyphenate-limit-lines: 0;', '0');
26 test('-webkit-hyphenate-limit-lines: 4;', '4');
27 test('-webkit-hyphenate-limit-lines: 2 2;', '');
28 test('-webkit-hyphenate-limit-lines: 2px;', '');
29 test('-webkit-hyphenate-limit-lines: -1;', '');
30 test('-webkit-hyphenate-limit-lines: "1";', '');