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

Property background-position-x and -y not quite correct #555

Closed
kof opened this issue Feb 10, 2022 · 1 comment · Fixed by #558
Closed

Property background-position-x and -y not quite correct #555

kof opened this issue Feb 10, 2022 · 1 comment · Fixed by #558

Comments

@kof
Copy link

kof commented Feb 10, 2022

w3c and both firefox and chrome show 0% for both background-position-x and background-position-y

While technically left and top is also correct, I think we should stick with the spec (yeah I found it because the logic I am writing requires an exact match with the browser value)

https://drafts.csswg.org/css-backgrounds/#propdef-background-position

@teoli2003
Copy link
Member

I agree, and it makes these values coherent with the initial value of background-position that is 0% 0%.

PR incoming.

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

Successfully merging a pull request may close this issue.

2 participants