Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-webkit-background-size has behavioural differences to background-size #28

Open
alancutter opened this issue Jan 15, 2016 · 2 comments
Open

Comments

@alancutter
Copy link

@alancutter alancutter commented Jan 15, 2016

-webkit-background-size is listed as a simple alias for background-size when it has different syntactic behaviour.
-webkit-background-size: 10px is equivalent to background-size: 10px 10px.
background-size: 10px is equivalent to background-size: 10px auto (see https://drafts.csswg.org/css-backgrounds-3/#bg-size).

@miketaylr
Copy link
Collaborator

@miketaylr miketaylr commented Jan 15, 2016

Excellent feedback, thanks.

miketaylr added a commit that referenced this issue Jan 16, 2016
@zcorpan
Copy link
Member

@zcorpan zcorpan commented Mar 6, 2020

Should this property always be serialized with two values, so that it can roundtrip with both the prefixed and unprefixed variants?

Demo http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7809

Result in chrome

log: getting .style
log: 10px
log: setting .style to gCS
log: 10px
log: getting .style again
log: 10px 10px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.