Skip to content

[css-mixins-1] Defining how results referring to a function should be handled #12304

Open
@Que-tin

Description

@Que-tin

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();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions