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

[Compiler Error]CSS variable can not be used in CSS trigonometry functions #4224

Open
JLdiesel opened this issue Aug 30, 2023 · 3 comments
Open
Labels

Comments

@JLdiesel
Copy link

It works in css,not less
image
image

@JLdiesel JLdiesel added the bug label Aug 30, 2023
@matthew-dean
Copy link
Member

matthew-dean commented Sep 1, 2023

This looks like another variant of "CSS adding functions that are already in Less" problem. This will probably be solved in the future, but in the meantime, you can utilize string escaping, like:

--basic-deg-tan: ~"tan(var(--basic-deg))";

@jiang-zhong-xi
Copy link

This looks like another variant of "CSS adding functions that are already in Less" problem. This will probably be solved in the future, but in the meantime, you can utilize string escaping, like:

--basic-deg-tan: ~"tan(var(--basic-deg))";

how to do if "var(--basic-deg)" needs to pass to third part lib, third part lib can not be modified.

@G1King
Copy link

G1King commented Mar 18, 2024

+1
I have same a issue

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

4 participants