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

@sesse I don't really think this makes sense (background-size is not -webkit-background-size), and I don't think we should change WPT to that extent; neither Firefox nor we serialize background-size as such, and there's really no backwards compat to worry about when the property is a different one.

This makes sense if you want to implement `-webkit-background-size` as a legacy alias of `background-size` instead of a separate property (like most things are in the compat specification: https://github.com/whatwg/compat/issues/28). It was made a legacy alias in WebKit to fix a different WPT fwiw: https://bugs.webkit.org/show_bug.cgi?id=243562#c2

It's generally lower cost to handle prefixes as legacy aliases rather than separate properties, so this is why I'd like this change to be made.

> there's really no backwards compat to worry about when the property is a different one.

There shouldn't be with this change either, we haven't received any breakage reports for the past 2 years we've shipped this change, and most frameworks need to be able to parse both values anyway.


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


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

Received on Tuesday, 3 December 2024 17:05:45 UTC