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

Not sure if background-size initial "auto auto" is correct #556

Closed
kof opened this issue Feb 10, 2022 · 1 comment
Closed

Not sure if background-size initial "auto auto" is correct #556

kof opened this issue Feb 10, 2022 · 1 comment

Comments

@kof
Copy link

kof commented Feb 10, 2022

Chrome and firefox show "auto" as a single value, w3c too
https://drafts.csswg.org/css-backgrounds/#the-background-size

@teoli2003
Copy link
Member

That's technically correct, but the spec also says:

The first value gives the width of the corresponding image, the second value its height. If only one value is given the second is assumed to be auto.

So auto is a kind of shorthand for auto auto.

I think it may be clearer to list both values. (Feel free to reopen if you have more arguments).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants