Skip to content

add spec for trimming super selectors in @extend#1680

Closed
connorskees wants to merge 1 commit intosass:mainfrom
connorskees:extend-removes-super-selectors
Closed

add spec for trimming super selectors in @extend#1680
connorskees wants to merge 1 commit intosass:mainfrom
connorskees:extend-removes-super-selectors

Conversation

@connorskees
Copy link
Contributor

This was a really interesting bug -- the only one I've had to actually clone the dart-sass repo for in order to track down. The bug ended up being related to this line
Captura de pantalla de 2021-07-30 23-37-40

https://github.com/sass/dart-sass/blob/6f17b4aa9ca879d79d07f83474bae164617570bd/lib/src/extend/extension_store.dart#L135

Set.identity constructs a set that uses pointer equality, rather than true equality. In rust this is hard to model, so this behavior was overlooked. The fix was implemented by giving a unique id to every original. See connorskees/grass@fccf93c

Resolves #1678

@jathak
Copy link
Member

jathak commented Aug 4, 2021

Thanks for this! Can you move this spec to the proper conformant directory?

@nex3
Copy link
Contributor

nex3 commented Mar 25, 2022

Closing due to inactivity.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Additional test case for @extend

3 participants