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

The background-position declarations are flipped differently on version v4.0.0 #298

Closed
elchininet opened this issue Sep 12, 2022 · 3 comments
Labels

Comments

@elchininet
Copy link
Contributor

elchininet commented Sep 12, 2022

I tried the last version and I‘ve noticed this change:

Input

.test {
    background-position: 10px 20px;
}

Output

.test {
    background-position: right 10px top 20px;
}

https://runkit.com/embed/g3d996pobcue

It doesn‘t matter if I use the useCalc option, the result is the same.

Is this on purpose?

@elchininet elchininet changed the title The background-position styles are flipped differently on version v4.0.0 The background-position declarations are flipped differently on version v4.0.0 Sep 12, 2022
@MohammadYounes
Copy link
Owner

@elchininet Yes. a background position with 2-Value syntax doesn't require using calc.

@elchininet
Copy link
Contributor Author

So, are the results as expected then?
I just wanted to check because they differ from the previous implementation.
Regards

@MohammadYounes
Copy link
Owner

Yes 👍

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

No branches or pull requests

2 participants