2025-03-18 19:28:35 +01:00
|
|
|
<!DOCTYPE html>
|
2023-09-19 20:45:28 +01: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 16:17:41 +00: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 10:21:40 +01:00
|
|
|
serialize(' attr(foo) attr(bar) attr(baz) ');
|
2023-09-19 20:45:28 +01:00
|
|
|
});
|
|
|
|
|
</script>
|