diff options
Diffstat (limited to 'testing/web-platform/tests/editing/crashtests/designMode-on-of-lazy-loading-iframe.html')
-rw-r--r-- | testing/web-platform/tests/editing/crashtests/designMode-on-of-lazy-loading-iframe.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/editing/crashtests/designMode-on-of-lazy-loading-iframe.html b/testing/web-platform/tests/editing/crashtests/designMode-on-of-lazy-loading-iframe.html new file mode 100644 index 0000000000..90a6c85c45 --- /dev/null +++ b/testing/web-platform/tests/editing/crashtests/designMode-on-of-lazy-loading-iframe.html @@ -0,0 +1,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> |