Skip to content

Commit 9823af3

Browse files
committed
Ignore pseudo elements
1 parent 3831ec5 commit 9823af3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Descriptor.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ export class Descriptor {
6868
}
6969
this.element = document.createElement(tag);
7070

71+
// Check for pseudo elements.
72+
if (rule.pseudoElement) {
73+
this.invalid = true
74+
}
75+
7176
if (this.invalid) {
7277
return;
7378
}

0 commit comments

Comments
 (0)