summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/designMode-on-of-lazy-loading-iframe.html
blob: 90a6c85c45c38ef8e106400dc0445e3fb582d13a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
*::first-letter {}
</style>
<script>
addEventListener("load", () => {
  const iframe = document.querySelector("iframe");
  iframe.contentWindow.focus();
  document.styleSheets[0].deleteRule(0);
  iframe.contentWindow.document.designMode = "on";
});
</script>
</head>
<body>
<iframe loading="lazy">
</body>
</html>