anchor.diff:            }
           }
         }
  -    }
  -
  -    var rules = _selectors[target];
  +
  +      if (rules != null) {
  +        newExtenders ??= {};
  +        newExtenders[complex] = state;
  +      }
  +    }
  +
       if (rules == null) return;
  -    var extensions = {
  -      target: {extender: state}
  -    };
  +    if (newExtenders == null) return;
       for (var rule in rules) {
         try {
  -        rule.selector.value =
  -            _extendList(rule.selector.value, extensions, _mediaContexts[rule]);
  +        rule.selector.value = _extendList(
  +            rule.selector.value, {target: newExtenders}, _mediaContexts[rule]);
         } on SassException catch (error) {
           throw new SassException(
               "From ${rule.selector.span.message('')}\n"
  
positive.code:   /// If [replace] is `true`, this doesn't preserve the original selectors.
    List<ComplexSelector> _extendCompound(
        CompoundSelector compound,
        Map<SimpleSelector, Map<SelectorList, ExtendState>> extensions,
        List<CssMediaQuery> mediaQueryContext,
        {bool replace: false}) {
      var original = compound;
  
negative.code: 
    /// A map from all extended simple selectors to the sources of those
    /// extensions.
    final _extensions = <SimpleSelector, Map<ComplexSelector, ExtendState>>{};
  
    /// An expando from [CssStyleRule] to media query contexts.
    ///
  