mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
17 lines
355 B
HTML
17 lines
355 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body onload="f()">
|
|
<div></div>
|
|
<style>
|
|
div { color: blue; }
|
|
</style>
|
|
<script>
|
|
function f() {
|
|
// This should not leak.
|
|
var div = document.querySelector("div");
|
|
var shadow = div.createShadowRoot();
|
|
shadow.innerHTML = '<div><style scoped>p { color: green; }</style>';
|
|
}
|
|
</script>
|
|
</body>
|