From 8c4f0bdf81d9355745cf988cebed195b4d06c518 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Fri, 6 Jan 2017 20:11:56 -0800 Subject: [PATCH] Fix superselector computation for :not(). --- CHANGELOG.md | 2 ++ lib/src/extend/functions.dart | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe587ad5..06b30be8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ * Forbid mixins and functions from being defined in control directives. +* Fix a superselector-computation edge case involving `:not()`. + ## 1.0.0-alpha.6 * Allow `var()` to be passed to `rgb()`, `rgba()`, `hsl()`, and `hsla()`. diff --git a/lib/src/extend/functions.dart b/lib/src/extend/functions.dart index 5fda9d5a..0e8a60b5 100644 --- a/lib/src/extend/functions.dart +++ b/lib/src/extend/functions.dart @@ -729,7 +729,7 @@ bool _selectorPseudoIsSuperselector( case 'not': return pseudo1.selector.components.every((complex) { - return compound2.components.every((simple2) { + return compound2.components.any((simple2) { if (simple2 is TypeSelector) { var compound1 = complex.components.last; return compound1 is CompoundSelector &&