mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Validate ASF syntax at parse time
This commit is contained in:
Notes:
github-actions[bot]
2026-03-30 18:58:46 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/03d479c1dac Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8653 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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>
|
||||
Reference in New Issue
Block a user