New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the behavior of selector.extend does not actually match the extend directive #1301
Comments
note that libsass gets the output right when passing |
Looking at the code, I found |
This looks like a bug to me.
The |
Looking at this further:
I was wrong about this— |
@extend
forbids extending a compound selector. However,selector.extend
happily acceptsa:hover
as its$extendee
argument.this makes the doc confusing, as it describes the function as following the same rules than
@extend
: https://sass-lang.com/documentation/modules/selector#extendThus, the doc about
@extend
says that@extend .a:hover
should be replaced with@extend .a, :hover
as it does the same (and indeed, in libsass, it does the same with a warning). However, passing.a, :hover
or.a:hover
toselector.extend
produces a different behavior than passing.a, :hover
toselector.extend
.Here is the output with dart-sass 1.32.2:
The text was updated successfully, but these errors were encountered: