Re: [csswg-drafts] [css-shapes-1] Optional values shouldn't be serialized (#8695)

Should `at center`/`at center center` be the only values omitted when serializing a specified value?

I cannot find any WPT tests that omit `<position>` anywhere, and I do not think general serialization principles currently define whether `50%` can be considered equivalent to `center` or more generally, if a keyword can be considered equivalent to a numeric value, when serializing a specified value.

In FF, any combination of `center` and `50%` is omitted as a `<position>` in `conic-gradient()` and `radial-gradient()`, when serializing a specified value.

But still in FF, any combination of `left`/`top` and `0%`, or `0%` alone, are preserved as a `<bg-position>` in `background` or `mask`, when serializing a specified value, whereas `0% 0%` (the initial value of `background-position` or `mask-position`) is omitted.

Also, FF omits `400` as a `font-weight` (its initial value is `normal`) in `font`.

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


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

Received on Friday, 15 September 2023 03:53:55 UTC