blob: e86510be7cde367606c65c9a51a489b04065e984 [file] [log] [blame]
<script>
function test()
{
if (window.layoutTestController)
layoutTestController.dumpAsText();
var rules = getMatchedCSSRules(document.body, "", true);
if (rules && rules.length) {
log("FAIL: Expected 0 matched rules, but found " + rules.length + ":");
for (var i = 0; i < rules.length; ++i)
log(rules[i].cssText);
return;
}
log("PASS");
}
function log(msg)
{
document.getElementById("log").appendChild(document.createTextNode(msg + "\n"));
}
</script>
<style>
body {
word-break: solid;
-webkit-user-modify: solid;
}
</style>
<body onload="test()">
<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>
<pre id="log"></pre>
</body>