mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
When CSSRule.cssText is accessed, shorthands are recomposed from individual longhand declarations. For coordinating-list shorthands, the `serialize()` function always assumed that each sub-property was a value list. This caused a crash for longhands containing `var()`. We now fall back to serializing properties individually if any sub property contains `var()`. This matches the behavior of other engines.
17 lines
363 B
HTML
17 lines
363 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
.a {
|
|
transition-property: var(--a);
|
|
transition-duration: var(--b);
|
|
transition-timing-function: var(--c);
|
|
transition-delay: var(--d);
|
|
transition-behavior: var(--e);
|
|
}
|
|
</style>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
println(document.styleSheets[0].cssRules[0].cssText);
|
|
});
|
|
</script>
|