mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 18:37:37 +02:00
Otherwise, `margin: var(--foo) var(--bar)` would be wrongly serialized as `margin: var(--foo)var(--bar)` (cherry picked from commit 6e68e8f3c9d74893e46ab0514169b950866457b4)
24 lines
962 B
HTML
24 lines
962 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
function serialize(input) {
|
|
document.body.style.content = input;
|
|
println(document.body.style.content);
|
|
}
|
|
|
|
serialize('attr(foo)');
|
|
// FIXME: This should produce `attr(foo)` but doesn't yet.
|
|
serialize('attr( foo )');
|
|
serialize('attr(foo, "fallback")');
|
|
// FIXME: This should produce `attr(foo, "fallback")` but doesn't yet.
|
|
serialize('attr( foo , "fallback" )');
|
|
serialize('attr(foo string)');
|
|
// FIXME: This should produce `attr(foo string)` but doesn't yet.
|
|
serialize('attr( foo string )');
|
|
serialize('attr(foo string, "fallback")');
|
|
// FIXME: This should produce `attr(foo string, "fallback")` but doesn't yet.
|
|
serialize('attr( foo string , "fallback" )');
|
|
serialize(' attr(foo) attr(bar) attr(baz) ');
|
|
});
|
|
</script>
|