Skip to content

Instantly share code, notes, and snippets.

@Westbrook
Created April 23, 2014 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Westbrook/11229624 to your computer and use it in GitHub Desktop.
Save Westbrook/11229624 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
%extended {
border: none;
}
%extend {
width: 100%;
.child {
@extend %extended;
padding: 10px;
}
}
.extend {
@extend %extend;
}
.extend {
border: none; }
.extend {
width: 100%; }
%extend .extend {
padding: 10px; }
@Westbrook
Copy link
Author

Here we see the Libsass processor fail in applying the selector .extend .child to the .child element of the extended parent, %extend .extend (ln 6 ...output.css) in applied instead.

When extending another placeholder class with that child, an alternate errant selector is then passed along and applied as .extend (ln 1 ...output.css) instead of .extend .child.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment