trisquel-icecat/icecat/testing/web-platform/tests/selection/caret/after-designMode-off.html
2025-10-06 02:35:48 -06:00

25 lines
667 B
HTML

<!doctype html>
<html class="reftest-wait">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="match" href="after-designMode-off-ref.html">
<style>
:read-only { color: green; }
:read-write { color: red; }
</style>
<script>
addEventListener("load", () => {
requestAnimationFrame(()=> {
document.designMode='on';
getSelection().collapse(document.body.firstChild, 0);
requestAnimationFrame(()=> {
document.designMode='off';
document.documentElement.removeAttribute("class");
});
});
}, {once: true});
</script>
</head>
<body>&lt;-- No caret should appear here.</body>
</html>