mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
`@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`.
15 lines
291 B
HTML
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>
|