Skip to content

Truly independent web browser

565 B
Raw Blame
<!DOCTYPE html>
<style id="test-style">
@-webkit-keyframes test-animation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
</style>
<script src="../include.js"></script>
<script>
    test(() => {
        const sheet = document.getElementById("test-style").sheet;
        const rule = sheet.cssRules[0];

        println(`Rule type: ${rule.type}`);
        println(`Rule is CSSKeyframesRule: ${rule instanceof CSSKeyframesRule}`);
        println(`Animation name: ${rule.name}`);
        println(`Number of keyframes: ${rule.cssRules.length}`);
    });
</script>