Re: [csswg-drafts] [css-backgrounds] Always serialize 'background-size' and `mask-size` as two values (#7802)

  > Note that we can't serialize `-webkit-background-size` and `background-size` as they're aliased.

I meant to say this, if that needed to be clarified:

```js
style.webkitBackgroundSize = '1px'
style.webkitBackgroundSize; // 1px
style.backgroundSize; // 1px 1px
style.webkitBackgroundSize = '1px auto'
style.webkitBackgroundSize; // 1px auto
style.backgroundSize; // 1px
```

But I had forgotten that the definition of the aliasing mechanism requires converting the alias *transparently*. I.e. parsing and serialization cannot know that an alias has been used. Although technically possible, this is probably not worth the complexity it would add. So nevermind! ^^

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


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

Received on Tuesday, 27 January 2026 18:06:04 UTC