Files
ladybird/Tests/LibWeb/Text/input/css/asf-allowed-in-custom-function-descriptor.html
Callum Law 071b000d9f LibWeb: Only allow ASFs in descriptor values if explicitly supported
`@function` descriptors are the only ones that support ASFs, while most
descriptors enforce this through their syntaxes implicitly disallowing
ASFs, this wasn't the case for `@property/initial-value`.

We now explictly disallow ASFs unless they are marked as allowed within
`Descriptors.json`.
2026-03-30 19:57:36 +01:00

15 lines
291 B
HTML

<!doctype html>
<style>
@function --foo(--bar) {
--baz: var(--bar);
result: var(--baz);
}
</style>
<div id="target"></div>
<script src="../include.js"></script>
<script>
test(() => {
println(document.styleSheets[0].cssRules[0].cssText);
});
</script>