blob: d5720742c736e15712bb52f283c719895e7e836a [file] [log] [blame]
<!DOCTYPE html>
div {
width: 100px;
height: 100px;
#overflowHidden {
overflow: hidden;
background: purple;
#transformed {
transform: rotate(0deg) translate3d(0, 0, 0);
-webkit-transition: -webkit-transform linear 0s;
background: green;
#transformed:hover {
transform: rotate(45deg) translate3d(0, 0, 0);
<p> Test for bug <a href="">83954</a>: REGRESSION(110072): Clipping is not applied on layers that are animated using platform code</p>
<p> This passes if the green transformed square doesn't split out of the purple square.</p>
<div id="transformed"></div>
if (!window.eventSender)
alert("To manually test, hover over the green div. The overflow should be properly clipped.");
document.body.offsetTop; // Force layout. The mouse is not tracked before first layout.
var transformed = document.getElementById("transformed");
transformed.parentNode.setAttribute("id", "overflowHidden");
eventSender.mouseMoveTo(transformed.offsetLeft + 10, transformed.offsetTop + 10);
document.body.offsetTop; // Update layout for hovered state.