From 95508b27136611b11f46e23a01caaee447137f8c Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 19 Oct 2016 21:05:52 -0700 Subject: [PATCH] Fix some edge-case-y extend logic. --- lib/src/extend/functions.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/extend/functions.dart b/lib/src/extend/functions.dart index ae7a5627..188b81da 100644 --- a/lib/src/extend/functions.dart +++ b/lib/src/extend/functions.dart @@ -684,7 +684,7 @@ bool _simpleIsSuperselectorOfCompound( if (theirSimple is PseudoSelector && theirSimple.selector != null && _subselectorPseudos.contains(theirSimple.normalizedName)) { - return theirSimple.selector.components.any((complex) { + return theirSimple.selector.components.every((complex) { if (complex.components.length != 1) return false; var compound = complex.components.single as CompoundSelector; return compound.components.contains(simple); @@ -775,4 +775,4 @@ Iterable _selectorPseudosNamed( simple is PseudoSelector && simple.isClass && simple.selector != null && - simple.name == name)); + simple.normalizedName == name));