libsass icon indicating copy to clipboard operation
libsass copied to clipboard

extend does not extend all values

Open dracos opened this issue 4 years ago • 0 comments

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++]

dracos avatar Aug 23 '21 22:08 dracos