feat: check if ::nth-child() psuedo-class selector be omitted
This commit is contained in:
@@ -395,6 +395,11 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function dispensableNth(node: Node) {
|
||||||
|
return node.name !== 'html' && !node.name.startsWith('#');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user