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
How should results should be handled that return a custom-indent that might be a reference to another function?
First of how to properly type and return a dashed-function.
@function --x1() returns <number> {
result:2;
}
/* Is <custom-ident> or <dashed-function> the right data type? */@function --x2() returns <custom-ident> {
result:ident("x1");
}
/* What would I need to do to return a reference to a function without ident? */@function --x3() returns <dashed-function> {
result:--x1;
}
@function --x4() returns <dashed-function> {
result:var(--x1);
}
And then how to use it
.x {
/* Will this be possible? */--y:--x2()();
/* Or do I need to do this? */--y:--x2();
--z:--y();
}
The text was updated successfully, but these errors were encountered:
Que-tin
changed the title
Defining how custom-indent results referring to a function should be handled
[css-mixins-1] Defining how custom-indent results referring to a function should be handled
Jun 8, 2025
Que-tin
changed the title
[css-mixins-1] Defining how custom-indent results referring to a function should be handled
[css-mixins-1] Defining how results referring to a function should be handled
Jun 8, 2025
We probably need a new arbitrary substitution function (call() ?) that takes a dashed-ident and invokes a function from that. This would be useful for the ident() function as well.
Uh oh!
There was an error while loading. Please reload this page.
How should results should be handled that return a custom-indent that might be a reference to another function?
First of how to properly type and return a dashed-function.
And then how to use it
The text was updated successfully, but these errors were encountered: