author Andrew Osmond <>
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:

<html reftest-zoom="1.1">
<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;
<div class="parent">
	<div class="bg"></div>
	<div class="bg_overlay"></div>