Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Can't use !important for css vars #2590

@bhollis

Description

@bhollis

input.scss

body {
    --foo: 999 !important;
}

Actual results

libsass 3.5.0 via node-sass 4.8.1

Invalid CSS after "999": expected "}", was "!important;"

Expected result

body {
    --foo: 999 !important;
}

(This worked fine in node-sass 4.7.2 / libsass 3.5.0.beta.2)

version info:

$ node-sass --version
node-sass	4.8.1	(Wrapper)	[JavaScript]
libsass  	3.5.0	(Sass Compiler)	[C/C++]

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