Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// I won't fail this time
document.body.appendChild(document.createElement('div'))
.attachShadow({mode: 'open'})
.innerHTML = '<style>div { background-color: #82b74b; }</style><div>Make me green!</div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment