blob: 6f84b71b2da39efec1a28ece92997aadf20a1e8a [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Test to make sure outline-offset is found in the computed style.")
var testContainer = document.createElement("div");
document.body.appendChild(testContainer);
testContainer.innerHTML = '<div id="test" style="outline: 2px solid black">hello</div>';
e = document.getElementById('test');
e.contentEditable = true;
e.style.outlineOffset = "2px";
computedStyle = window.getComputedStyle(e);
shouldBe("computedStyle.getPropertyValue('outline-offset')", "'2px'");
shouldBe("computedStyle.getPropertyCSSValue('outline-offset').getFloatValue(CSSPrimitiveValue.CSS_PX)", "2");
document.body.removeChild(testContainer);
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>