ladybird/Tests/LibWeb/Text/input/css/insert-import-rule-into-constructed-stylesheet.html

13 lines
403 B
HTML

<!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>