Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
fix(root): fixed the step assignment bug
Browse files Browse the repository at this point in the history
without media expressions
  • Loading branch information
mg901 committed Jun 27, 2019
1 parent c37678c commit 77e31e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/step/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77e31e0

Please sign in to comment.