Re: [csswg-drafts] [css-images] image-set: should we serialize options with unsupported type? (#8495)

I'm learning now while trying to write a test that omitting unsupported types leads to non-round-trippable serializations if the set ends up empty.

```CSS
image-set("img.png" type("image/unsupported"))
```

would serialize to (something like) `image-set()` which is not a valid image-set, even though it was valid as written.

Since type isn't supposed to determine the validity of the `image-set` itself maybe it's best to serialize as-written (so option one above).

-- 
GitHub Notification of comment by rreno
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8495#issuecomment-1444627402 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 24 February 2023 23:01:38 UTC