Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
</style>
<script>
"use strict";
addEventListener("DOMContentLoaded", () => {
const style = document.querySelector("style");
getSelection().selectAllChildren(style);
style.contentEditable = true;
document.execCommand("backColor", false, "red");
}, {once: true});
</script>
</head>
<body></body>
</html>