feat: check if ::nth-child() psuedo-class selector be omitted
This commit is contained in:
@@ -395,7 +395,12 @@ 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