gecko-dev/layout/reftests/bugs/961887-1.html
Markus Stange 511a39c19d Bug 961887 - Find uniform opaque background colors under ContainerLayers. r=roc
--HG--
extra : rebase_source : 7b5877bc9336e3b01ec43732a5697fba7994c465
2015-02-25 11:47:22 -05:00

31 lines
561 B
HTML

<!DOCTYPE HTML>
<title>Don't pull background colors of container layers through DrawAboveRegions of ThebesLayers</title>
<style>
#outer {
transform: translateX(1px);
}
#above {
position: absolute;
top: 50px;
left: 50px;
width: 100px;
height: 100px;
border: 1px solid black;
}
</style>
<div id="outer">
<canvas id="canvas" height="100" width="200"></canvas>
<div id="above"></div>
</div>
<script>
var canvas = document.getElementById("canvas");
var cx = canvas.getContext("2d");
cx.fillStyle="lime";
cx.fillRect(0, 0, 200, 100);
</script>