blob: b96c073b3f3cdfd9e7d45688e82b425ae607e56c [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../js/resources/js-test-pre.js"></script>
<script>
description('Test that parsing of css exclusions related properties can be disabled.');
if (window.internals)
window.internals.settings.setCSSExclusionsEnabled(false);
function testInlineStyle(property, value) {
var div = document.createElement("div");
div.setAttribute("style", property + ": " + value);
return div.style.getPropertyValue(property);
}
function testComputedStyle(property, value) {
var div = document.createElement("div");
document.body.appendChild(div);
div.style.setProperty(property, value);
var computedValue = getComputedStyle(div).getPropertyValue(property);
document.body.removeChild(div);
return computedValue;
}
function testStyle(property, value, computedExpected) {
shouldBeNull('testInlineStyle("' + property + '", "' + value + '")');
shouldBeEqualToString('testComputedStyle("' + property + '", "' + value + '")', computedExpected);
}
testStyle("-webkit-wrap-flow", "both", "auto");
testStyle("-webkit-wrap-through", "none", "wrap");
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>