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

object-position zeroes are not collapsible #13

Open
pydsigner opened this issue Aug 7, 2023 · 1 comment · May be fixed by #14
Open

object-position zeroes are not collapsible #13

pydsigner opened this issue Aug 7, 2023 · 1 comment · May be fixed by #14

Comments

@pydsigner
Copy link

>>> csscompressor.compress('img {object-position: 0 0;}')
'img{object-position:0}'

This looks right, but actually breaks the property, which is defined to use the same values as background-position: https://drafts.csswg.org/css-images/#the-object-position. However, background-position is actually handled correctly:

>>> csscompressor.compress('img {background-position: 0 0;}')
'img{background-position:0 0}'
@pydsigner
Copy link
Author

A temporary workaround is to use synonyms for 0 0, like right top.

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.

1 participant