From 77e31e02bd0a6e147b6d180cfbf280591a09b3e0 Mon Sep 17 00:00:00 2001 From: mg901 Date: Thu, 27 Jun 2019 13:33:22 +0300 Subject: [PATCH] fix(root): fixed the step assignment bug without media expressions --- features/step/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step/index.js b/features/step/index.js index 6531032..6261c6f 100644 --- a/features/step/index.js +++ b/features/step/index.js @@ -49,7 +49,7 @@ function hasStepUnit(value) { function getClosestRule({ parent }) { let selectorParent = parent; - while (selectorParent && !selectorParent.type === 'atrule') { + while (selectorParent && selectorParent.type !== 'atrule') { selectorParent = selectorParent.parent; if (selectorParent.type === 'root') { return selectorParent;