Skip to content

Truly independent web browser

562 B
Raw Blame
<!DOCTYPE html>
<style>
span {
    color: purple;
}
</style>
<script src="../include.js"></script>
<script>
    test(() => {
        const spanRule = document.styleSheets[0].cssRules[0];
        println("spanRule: " + spanRule + " ~ " + spanRule.cssText);
        println("spanRule.style: " + spanRule.style + " ~ " + spanRule.cssText);
        println("spanRule.style.parentRule: " + spanRule.style.parentRule + " ~ " + spanRule.cssText);
        println("spanRule.style.parentRule === spanRule: " + (spanRule.style.parentRule === spanRule));
    });
</script>