Skip to content

Instantly share code, notes, and snippets.

@easingthemes
Created December 8, 2021 14:12
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 easingthemes/c21615241f894f1cfed04b98082ac495 to your computer and use it in GitHub Desktop.
Save easingthemes/c21615241f894f1cfed04b98082ac495 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// Works in both libsass and dart-sass.
.one {
content: simple-selectors(&);
}
// Works only in libsass.
// Error in dart-sass: Error: $selector: expected selector.
.one {
.two {
content: simple-selectors(&);
}
}
.one {
.two {
.three {
content: simple-selectors(&);
}
}
}
.one {
content: .one;
}
.one .two {
content: .one;
}
.one .two .three {
content: .one;
}
{
"sass": {
"compiler": "libsass/3.5.5",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
@easingthemes
Copy link
Author

@easingthemes
Copy link
Author

{
  "sass": {
    "compiler": "dart-sass/1.32.12",
    "extensions": {},
    "syntax": "SCSS",
    "outputStyle": "expanded"
  },
  "autoprefixer": false
}

Gives
Error: $selector: expected selector. on simple-selectors(&)

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