<!doctype html>
<link rel=match href="media-print-change-print-ref.html">
<div id="target">FAIL</div>
<script>
  matchMedia("print").addEventListener("change", function() {
    document.getElementById("target").innerHTML = "PASS";
  });
</script>
