Skip to content

Truly independent web browser

651 B
Raw Blame
<!DOCTYPE html>
<html>
<script src="../include.js"></script>
<div id="a"></div>
<script>
    test(() => {
        a.style.border = '1px solid red';
        a.style.removeProperty('border');
        if (a.style.getPropertyValue('border') != "") {
            println("FAIL!: The border property should be removed");
            return;
        }

        a.style.border = '1px solid red';
        a.style.border = '';
        if (a.style.getPropertyValue('border') != "") {
            println("FAIL!: The border property should be removed when set to an empty string");
            return;
        }

        println("PASS")
    });
</script>

</html>