Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

extend does not extend all values #3162

Description

@dracos

input.scss

.one {
  color: red;
  .foo, .bar { color: yellow; }
  &, &:link, &:visited { color: green; }
  &:hover { color: blue; }
}
.two {
  @extend .one;
}

Actual results

libsass 3.6.5

.one, .two {
  color: red; }
  .one .foo, .two .foo, .one .bar, .two .bar {
    color: yellow; }
  .one, .two, .one:link, .one:visited {       
    color: green; }
  .one:hover, .two:hover {
    color: blue; }

Expected result

ruby sass 3.7.4

.one, .two {
  color: red; }
  .one .foo, .two .foo, .one .bar, .two .bar {
    color: yellow; }
  .one, .two, .one:link, .two:link, .one:visited, .two:visited {
    color: green; }
  .one:hover, .two:hover {
    color: blue; }

version info:

libsass-python 0.21.0 [Python]
libsass 3.6.5   (Sass Compiler) [C/C++]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions