Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<div style="display:inline-block; contain:strict; width:100px; height:100px;">
<div id="trouble" style="display:none;"></div>
</div>
<script>
window.matchMedia('print').addEventListener('change', () => {
trouble.style.display =
trouble.style.display == "block" ? "none" : "block";
});
</script>