gecko-dev/layout/style/crashtests/1449243.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 строки
350 B
HTML
Исходник Обычный вид История

<!doctype html>
<div id="host"></div>
<script>
host.attachShadow({ mode: 'open' }).innerHTML = `
<style>
div { color: green }
</style>
<div></div>
`;
document.body.offsetTop;
host.shadowRoot.styleSheets[0].insertRule("[foo] { color: green }", 0);
host.shadowRoot.querySelector("div").setAttribute("foo", "bar");
</script>