Skip to content

Output of interpolated selector with nested rules is different than written out #3098

Closed
@chazsolo

Description

@chazsolo

I noticed this while playing around with selector interpolation on less2css.org (v2.5.3):

If I use an interpolated selector with nested rules, the output is not what I expected (when compared to written out). For example, the given input:

@classes: ~".a, .b, .c";

@{classes} {  
  + .z {
    color: blue; 
  }
}

.p, .q, .r {
  + .z {
    color: blue;
  }
}

provides the following output:

.a, .b, .c + .z {
  color: blue;
}
.p + .z,
.q + .z,
.r + .z {
  color: blue;
}

Shouldn't the interpolated class output include + .z for each selector instead of just the final one, .c?

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