Skip to content

Truly independent web browser

571 B
Raw Blame
<!DOCTYPE html>
<script src="../include.js"></script>
<style>@keyframes shared { from, to { opacity: 0.25; } }</style>
<div id="host"></div>
<script>
    test(() => {
        const shadowRoot = host.attachShadow({ mode: "open" });
        shadowRoot.innerHTML = `
            <style>
                @keyframes shared { from, to { opacity: 0.75; } }
                #target { animation: shared 1s both; }
            </style>
            <div id="target"></div>
        `;
        println(getComputedStyle(shadowRoot.getElementById("target")).opacity);
    });
</script>