<!DOCTYPE html>
<script>
if (window.testRunner) {
testRunner.setPrintingScaleFactor(1);
}
</script>
<style>
body {
margin: 0;
}
</style>
<div style="overflow:clip; height:100vh; background:yellow;">
<div style="contain:size; scale:0.5; transform-origin:top left; width:200%;">
This page should be all yellow.
</div>
</div>
<div style="overflow:clip; height:100vh; background:orange;">
<div style="contain:size; scale:0.5; transform-origin:top left; width:200%;">
This page should be all orange.
</div>
</div>