<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1507840">
<style>
  :root {
    print-color-adjust: exact;
  }
</style>
<div style="position:relative; overflow:hidden; width:100px; height:100px;">
  <div style="position:absolute; width:100px; height:100px; background:green;">
    <div id="trouble"></div>
  </div>
</div>
<script>
  var mediaQuery = window.matchMedia("print");
  media