Skip to content

Cross-Browser Support Variables Only Work When Defined Before Compass Import #1435

@Snugug

Description

@Snugug

So many Compass extensions rely upon !default variables in order to have user-land setup variables. This works in the following manner:

// $setup-variable: 2 !default;
// @mixin test (content: $setup-variable;);
@import "framework";


$setup-variable: 1;

.foo {
 @include test; // 1
}

Now with Compass's Cross-Browser Support variables, if we were to set up the variables in the same way (for instance, $browser-minimum-versions or $graceful-usage-threshold) after our @import "compass";, Compass doesn't pick up on those variables and uses the Compass defaults.

This begs the question, why does this happen only with Compass's cross-browser support variables? Should it work the other way? Can it work the other way to provide some more consistency with the expected usage of !default variables?

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