gecko-dev/layout/style/test/mq_changes_child.html

9 строки
244 B
HTML

<script>
const mql = matchMedia("(prefers-reduced-motion: reduce)");
mql.addEventListener("change", event => {
parent.postMessage({ "matches": event.matches }, "*");
});
window.onload = () => { parent.postMessage("ready", "*"); };
</script>