gfx/tests/reftest/1501195-ref.html
author Andrew Osmond <aosmond@mozilla.com>
Wed, 23 Jan 2019 09:30:07 -0500
changeset 455005 524a6613a2ce63c3b760ea7f67cfb6e2cc5280c6
permissions -rw-r--r--
Bug 1501195 - Fix snapping issues caused by translation only transforms. r=jrmuizel In nsDisplayTransform::CreateWebRenderCommands we should be rounding the translation from the reference frame if there is no other transformation to better match non-WebRender which performs similar rounding in ChooseScaleAndSetTransform. Differential Revision: https://phabricator.services.mozilla.com/D14265

<html reftest-zoom="1.1">
<head>
<style type="text/css">
.parent {
display: flex;
overflow: hidden;
}

.bg {
background-color: lime;
width: 200px;
height: 200px;
transform: scale(1.05);
}

.bg_overlay {
background-color: red;
width: 100px;
height: 100px;
position: absolute;
}
</style>
</head>
<body>
<div class="parent">
	<div class="bg"></div>
	<div class="bg_overlay"></div>
</div>
</body>
</html>