Skip to content

Specificity doesn't translate correctly with nested & selector #120

@paulyoung

Description

@paulyoung

Seeing an issue with 1.0.0.rc1 where selector specificity doesn't translate correctly.

e.g.

a {
  font-size: == 16;

  &.b {
    font-size: == 24;
  }
}

An element with classes a and b has a font-size of 16. If I add !strong to .b then it works

This behaves correctly:

a {
  font-size: == 16;
} 

a.b {
  font-size: == 24;
}

So it appears that the issue is when using a nested & selector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions