blob: 6c47644ff044127aaf9b407d954771a5d7406677 [file] [log] [blame]
#scroll {
width: 200px;
height: 200px;
overflow: scroll;
border: 1px solid black;
#transform {
width: 100px;
height: 100px;
background-color: green;
transform: translateY(150px);
<p id="result">
FAIL. The transform has not been applied to the scrollHeight.
<div id="scroll">
<div id="transform"></div>
if (window.testRunner)
var scroll = document.getElementById("scroll");
var scrollHeight = scroll.scrollHeight;
if (scrollHeight > 200) {
var result = document.getElementById("result");
result.innerHTML = "SUCCESS! The transform was applied to the scrollHeight!";