Skip to content

Commit 02ea51d

Browse files
committed
update pseudo-element list per https://www.w3.org/TR/2020/WD-css-pseudo-4-20201231/ (and annotated)
1 parent 56b77e8 commit 02ea51d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

org/w3c/css/selectors/PseudoFactory.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,14 @@ public class PseudoFactory {
5757
};
5858

5959
private static final String[] PSEUDOELEMENT_CONSTANTSCSS3 = {
60-
"first-line", "first-letter", "before", "after", "marker",
61-
"selection", "placeholder", "backdrop"
60+
// https://www.w3.org/TR/2020/WD-css-pseudo-4-20201231/#typographic-pseudos
61+
"first-line", "first-letter",
62+
// https://www.w3.org/TR/2020/WD-css-pseudo-4-20201231/#highlight-pseudos
63+
"selection", "target-text", "spelling-error", "grammar-error",
64+
// https://www.w3.org/TR/2020/WD-css-pseudo-4-20201231/#treelike
65+
"before", "after", "marker", "placeholder", "file-selector-button",
66+
// https://fullscreen.spec.whatwg.org/#::backdrop-pseudo-element
67+
"backdrop"
6268
};
6369

6470
private static final String[] PSEUDOELEMENT_CONSTANTSCSS2 = {

0 commit comments

Comments
 (0)