blob: e3a2fb329401fbf6ffd079cf648f22eff31c3ee8 [file] [log] [blame]
<html>
<script>jsTestIsAsync = true;</script>
<script src="../../resources/js-test-pre.js"></script>
<head>
<title>This tests that outline-style auto repaint rect is correct with default outline-width and outline-offset.</title>
<style>
div {
position: absolute;
top: 10px;
height: 10px;
width: 10px;
outline: auto;
outline-offset: 1px;
}
</style>
</head>
<body>
<div id=foo></div>
</body>
<script>
setTimeout(
function() {
if (window.internals)
internals.startTrackingRepaints();
document.getElementById("foo").style.top = "50px";
document.body.offsetWidth;
if (window.internals) {
shouldNotBe("window.internals.repaintRectsAsText().indexOf('4 6')", "-1");
shouldNotBe("window.internals.repaintRectsAsText().indexOf('4 46')", "-1");
internals.stopTrackingRepaints();
}
finishJSTest();
}, 0);
</script>
<script src="../../resources/js-test-post.js"></script>
</html>