Skip to content

CSS4 variables not working with functions #2516

@rraziel

Description

@rraziel

Hello,

Not sure whether this has been reported (or whether it's not supposed to work by design) but the following:

@function testfunc($x) {
    @return $x;
}

body {
    --test: testfunc(42);
    -test: testfunc(42);
    test: testfunc(42);
}

Turns into the following CSS:

body {
    --test: testfunc(42);
    -test: 42;
    test: 42;
}

Is there any reason why the CSS variable one does not work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions