Skip to content

!default not applying to variables with null value #740

@raphaelschroiff

Description

@raphaelschroiff

According to the sass docs "Variables with null values are treated as unassigned by !default"
but libsass seems to treat null values as assigned when using !default:

$background: null;
$background: #fff !default;

.test {
  background-color: $background;
}

libsass 3.02 compiles this to

.test {
   }

Ruby sass compiles this to:

.test {
  background-color: #fff;
}

http://sassmeister.com/gist/a2e8a2424c963dd72098

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