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
There's no way for Sass functions in general to handle CSS variables. CSS variables are resolved at runtime and are affected by the cascade and potentially by JavaScript, so their values aren't reliably available at compile-time when Sass runs. If you want to pass variables to Sass functions, they have to be Sass variables.
Doh, I had a brain fart; thanks for the succinct answer
On Tue, Feb 21, 2017 at 4:08 PM Natalie Weizenbaum ***@***.***> wrote:
There's no way for Sass functions in general to handle CSS variables. CSS
variables are resolved at runtime and are affected by the cascade and
potentially by JavaScript, so their values aren't reliably available at
compile-time when Sass runs. If you want to pass variables to Sass
functions, they have to be Sass variables.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2246 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABKqOCNdzHkLkWbDvXt4nFYp8EfXGZigks5re3x7gaJpZM4MFm0w>
.
--
Kevin Lozandier
lozandier@gmail.com <lozandier@gmail.com>
Problem
For whatever reason, Sass con't enable the use of CSS variables within functions as expected; this is particularly problematic with color functions.
Sass Code (Used Sass 4.0 & LibSass 3.5)
Expected Result
Actual Result
It seems the parser doesn't resolve CSS variables when they are parameters of Sass functions
Recommended Reviewers
The text was updated successfully, but these errors were encountered: