ladybird/Tests/LibWeb/Text/input/css/font-face-with-prelude-is-invalid.html
Sam Atkins 1a599ceb98 LibWeb/CSS: Reject @font-face and margin rules that have a prelude
I couldn't find any WPT coverage for this, so here's a homemade test.
2025-08-04 10:50:09 +01:00

10 lines
265 B
HTML

<!DOCTYPE html>
<style>
@font-face foo {}
</style>
<script src="../include.js"></script>
<script>
test(() => {
println(`\`@font-face foo {}\` should be invalid: ${document.styleSheets[0].cssRules.length === 0 ? "PASS" : "FAIL"}`);
});
</script>