gecko-dev/gfx/tests/reftest/1501195.html
Andrew Osmond b04c5a5091 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
2019-01-23 12:15:41 -05:00

32 lines
440 B
HTML

<html reftest-zoom="1.1">
<head>
<style type="text/css">
.parent {
display: flex;
transform: translate3d(0px, 0px, 0px);
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>