Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / word-break-user-modify-allowed-values.html
blob6431d6849aff6940a41bda02adc0b5e03986a4e7
1 <script>
2 function test()
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var rules = getMatchedCSSRules(document.body, "");
8 if (rules && rules.length) {
9 log("FAIL: Expected 0 matched rules, but found " + rules.length + ":");
10 for (var i = 0; i < rules.length; ++i)
11 log(rules[i].cssText);
12 return;
15 log("PASS");
18 function log(msg)
20 document.getElementById("log").appendChild(document.createTextNode(msg + "\n"));
22 </script>
23 <style>
24 body {
25 word-break: solid;
26 -webkit-user-modify: solid;
28 </style>
29 <body onload="test()">
30 <p>This page tests that invalid values for the <tt>word-break</tt> and <tt>-webkit-user-modify</tt> properties are rejected by the CSS parser.</p>
31 <pre id="log"></pre>
32 </body>