Skip to content

wrong :before position #3084

Closed
Closed
@ahorek

Description

@ahorek

Hi, was this change intentional or is it a bug? Probably it's not a bug, but I just want to be sure.

input.scss

.red-icon {
  color: #e50026;
}

a.nested:before {
  &.error {
    @extend .red-icon;
  }
}

Actual results

libsass 3.6.3

.red-icon, a.nested:before.error {
  color: #e50026; }

dart sass also have this behavior

in this case <div class="red-icon">text</div> isn't red.

Expected result

libsass 3.6.1

.red-icon, a.nested.error:before {
  color: #e50026; }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions