blob: 487eed117989f65eb5020eba8d060fa61476825d [file] [log] [blame]
description(
"Check if the size of reflected images are considered as overflow size. See this bug for detail: https://bugs.webkit.org/show_bug.cgi?id=27979."
);
var element = null;
element = document.getElementById("horizontal");
element.scrollLeft = 500;
shouldBe("element.scrollLeft", "150");
element = document.getElementById("vertical");
element.scrollTop = 500;
shouldBe("element.scrollTop", "80");
element = document.getElementById("horizontal_flex");
element.scrollLeft = 500;
shouldBe("element.scrollLeft", "150");
element = document.getElementById("vertical_flex");
element.scrollTop = 500;
shouldBe("element.scrollTop", "80");
element = document.getElementById("horizontal_table");
element.scrollLeft = 500;
shouldBe("element.scrollLeft", "150");
element = document.getElementById("vertical_table");
element.scrollTop = 500;
shouldBe("element.scrollTop", "80");
// If we are in DTR, we don't need meaningless trailing messages.
if (window.testRunner) {
document.getElementById("main").innerHTML = "";
}