summaryrefslogtreecommitdiffstats
path: root/layout/style/test/mq_changes_child.html
blob: f594e9f00da8fcb69620402bf23db59c7a96b4b1 (plain)
1
2
3
4
5
6
7
8
<script>
const mql = matchMedia("(prefers-reduced-motion: reduce)");
mql.addEventListener("change", event => {
  parent.postMessage({ "matches": event.matches }, "*");
});

window.onload = () => { parent.postMessage("ready", "*"); };
</script>