Skip to content

Issue with :selectors #199

@rossxwest

Description

@rossxwest

It seems the extending of selectors that have a :selector on them is broken. It will create additional selectors during compile. See the example below:

Input:

.abc {
  color: #ddd;
}

a.abc:hover {
  text-decoration: underline; 
}

small {
  @extend .abc;
  font-weight: italic;
}

Output:

/* compiled by scssphp v0.1.0 on Tue, 12 Aug 2014 13:39:06 -0700 (0.0011s) */

.abc, small {
  color: #ddd; }

a.abc:hover, a:hover {
  text-decoration: underline; }

small {
  font-weight: italic; }

Expected Output:

.abc, small {
  color: #ddd; }

a.abc:hover {
  text-decoration: underline; }

small {
  font-weight: italic; }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions