Skip to content

Extend within container query #4540

Description

@pleclerc-famic

Extend seems to fail to take into account it being used within a container query.

To reproduce:

less-preview

.a {
  color: red;
}

@container container-name {
  .b {
    &:extend(.a);
  }
}

Current behavior:

Compiles down to this

.a,
.b {
  color: red;
}
@container container-name {
}

Expected behavior:

.a {
  color: red;
}

@container container-name {
  .b {
    color: red;
  }
}

Environment information:

  • less version: 4.9.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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