You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Compiler Error]CSS variable can not be used in CSS trigonometry functions #4224
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:
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.
Activity
matthew-dean commentedon 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:
jiang-zhong-xi commentedon Jan 23, 2024
how to do if "var(--basic-deg)" needs to pass to third part lib, third part lib can not be modified.
G1King commentedon Mar 18, 2024
+1
I have same a issue
puckowski commentedon Dec 5, 2024
I will take a look at improving Less.js custom property support this weekend.
fix(issue:4224) improve CSS custom property logic
fix(issue:4224, issue:3777) CSS custom property
puckowski commentedon Dec 7, 2024
I believe PR #4297 should resolve this issue.
In the short term, you can use fork https://github.com/puckowski/less.js/releases/tag/4.2.1.4
Fork is Less.js 4.2.1 with fixes for:
#4252
#3737
#4258
#4264
#4268
#4267
#3777
#4224