2025-03-18 15:28:35 -03:00
|
|
|
<!DOCTYPE html>
|
2023-09-19 16:45:28 -03:00
|
|
|
<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" )');
|
2025-03-03 13:17:41 -03:00
|
|
|
serialize('attr(foo raw-string)');
|
|
|
|
|
// FIXME: This should produce `attr(foo raw-string)` but doesn't yet.
|
|
|
|
|
serialize('attr( foo raw-string )');
|
|
|
|
|
serialize('attr(foo raw-string, "fallback")');
|
|
|
|
|
// FIXME: This should produce `attr(foo raw-string, "fallback")` but doesn't yet.
|
|
|
|
|
serialize('attr( foo raw-string , "fallback" )');
|
2024-10-15 06:21:40 -03:00
|
|
|
serialize(' attr(foo) attr(bar) attr(baz) ');
|
2023-09-19 16:45:28 -03:00
|
|
|
});
|
|
|
|
|
</script>
|