Newer
Older
minerva / Tests / LibWeb / Text / input / css / insert-import-rule-into-constructed-stylesheet.html
@minerva minerva on 13 Jul 403 bytes Initial commit
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    test(() => {
        try {
            const sheet = new CSSStyleSheet();
            sheet.insertRule(`@import url("style-sheet-with-byte-order-mark.css")`);
            println("FAIL");
        } catch (e) {
            println(`Inserting an @import rule into a constructed stylesheet throws: ${e.name}`);
        }
    });
</script>