Skip to content

Renaming detached rulesets inside a scope #2085

Closed
@SomMeri

Description

@SomMeri

I renamed detached ruleset (assign it to another variable) inside a scope. Should it gain access to that scope?

@detached-1: { scope-detached: @one @two; };
.one {
  @one: visible;
  .two {
    @detached-3: @detached-1; //renaming ruleset time
    @two: visible;
  }
}

.usePlace {
  .one > .two(); 
  @detached-3();
}

returns

NameError: variable @one is undefined in test.less on line 1, column 38:
1 @detached-1: { scope-detached: @one @two; };
2 .one {

I would expect the @detached-3 to see the variable @one, because the scope it is defined in contains such variable.

Sorry for nitpicking :).

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