LibWeb: Stop adding extra whitespace when serializing CSS Functions

Otherwise `attr(|name, "fallback")` becomes `attr(| name ,  "fallback")`

The test here is slightly aspirational. There are other rules for
serialization we don't follow (like stripping whitespace entirely from
many places) so these are marked with FIXMEs.
This commit is contained in:
Sam Atkins 2023-09-19 20:45:28 +01:00 committed by Andreas Kling
commit 0634d11318
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00
3 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,8 @@
attr(foo)
attr( foo )
attr(foo, "fallback")
attr( foo , "fallback" )
attr(foo string)
attr( foo string )
attr(foo string, "fallback")
attr( foo string , "fallback" )