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

translateX and translateY should accept Size Percentage as well as Size LengthUnit argument #218

Open
ddssff opened this issue Jun 18, 2021 · 5 comments

Comments

@ddssff
Copy link
Contributor

ddssff commented Jun 18, 2021

Currently I have to say

transform $ translateX (other "-50%")
transform $ translateY (other "-50%")

On the other hand, transform $ translate (pct (- 50)) (pct (- 50)) works and is what you actually want, the two transforms above interfere with each other.

@hsyl20
Copy link
Contributor

hsyl20 commented Sep 7, 2023

+1 for this

@turion
Copy link
Collaborator

turion commented Jan 5, 2024

Currently I have to say

transform $ translateX (other "-50%")
transform $ translateY (other "-50%")

Instead of what do you have to say this?

@ddssff
Copy link
Contributor Author

ddssff commented Jan 5, 2024

I'm not sure I understand the question.

@turion
Copy link
Collaborator

turion commented Jan 5, 2024

You wrote "Currently I have to say", but I'm not sure what the problem with the code transform $ translateX (other "-50%") is. Is the problem that you have to use other instead of pct?

@ddssff
Copy link
Contributor Author

ddssff commented Jan 5, 2024

Yes that's it. other is unsafe.

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

3 participants