Skip to content

@extend breaks :matches()/:-moz-any()/:-webkit-any() #2468

@nicolafio

Description

@nicolafio

input.scss

%test {
    :matches(oh, no) {
        x: 1;
        y: 2;
    }
}
test {
    @extend %test;
}

Actual result

test :matches(oh):matches(no) {
  x: 1;
  y: 2; }

Expected result

test :matches(oh, no) {
  x: 1;
  y: 2; }

It works with the Ruby version sass (3.4.24).

Version Info

Tried both with sassc 3.4.2/libsass: 3.4.3 (installed in the system) and sassc 3.4.5/libsass 3.5.0.beta.3-81-g4f74 (cloned and built).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions