LibWeb: Validate ASF syntax at parse time

This commit is contained in:
Callum Law
2026-03-28 22:41:48 +13:00
committed by Sam Atkins
parent 04f634eeb2
commit 03d479c1da
Notes: github-actions[bot] 2026-03-30 18:58:46 +00:00
18 changed files with 96 additions and 31 deletions

View File

@@ -0,0 +1,16 @@
<!doctype html>
<style>
@function --var-default(--x: var(--fallback)) {
}
@function --invalid-var-default(--x: var(, 1px)) {
}
</style>
<script src="../include.js"></script>
<script>
test(() => {
for (const rule of document.styleSheets[0].cssRules) {
println(rule.cssText);
}
});
</script>