Skip to content

Commit ede9835

Browse files
committed
updated pseudoclasses (and annotated sources)
1 parent 02ea51d commit ede9835

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

org/w3c/css/selectors/PseudoFactory.java

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,31 @@
2222
public class PseudoFactory {
2323

2424
private static final String[] PSEUDOCLASS_CONSTANTSCSS3 = {
25-
"link", "visited", "active", "focus", "target",
26-
"hover", "first-child", "enabled", "disabled",
27-
"checked", "indeterminate", "root", "last-child",
25+
// https://www.w3.org/TR/2018/WD-selectors-4-20181121/#location
26+
"any-link", "link", "visited", "local-link", "target",
27+
"target-within", "scope",
28+
// https://www.w3.org/TR/2018/WD-selectors-4-20181121/#useraction-pseudos
29+
"hover", "active", "focus", "focus-visible", "focus-within",
30+
// https://www.w3.org/TR/2018/WD-selectors-4-20181121/#time-pseudos
31+
"current", "past", "future",
32+
// https://www.w3.org/TR/2018/WD-selectors-4-20181121/#resource-pseudos
33+
"playing", "paused",
34+
// https://www.w3.org/TR/2018/WD-selectors-4-20181121/#input-pseudos
35+
"enabled", "disabled", "read-only", "read-write", "placeholder-shown",
36+
"default", "checked", "indeterminate",
37+
"blank", "valid", "invalid", "in-range", "out-of-range", "required", "optional",
38+
"user-invalid",
39+
// https://www.w3.org/TR/2018/WD-selectors-4-20181121/#structural-pseudos
40+
"root", "empty", "first-child", "last-child", "only-child",
2841
"first-of-type", "last-of-type", "only-of-type",
29-
"only-child", "empty",
30-
"fullscreen", "default", "valid", "invalid", "in-range",
31-
"out-of-range", "required", "optional", "read-only",
32-
"read-write", "defined", "placeholder-shown",
33-
// from selectors-4, unstable list (20190626)
34-
"any-link", "local-link", "target-within", "scope",
35-
"focus-visible", "focus-within", "current", "past",
36-
"future", "playing", "paused", "blank", "user-invalid",
37-
38-
42+
// https://www.w3.org/TR/2018/WD-css-page-3-20181018/#page-selectors
43+
"left", "right", "first",
44+
// https://www.w3.org/TR/2014/WD-css-scoping-1-20140403/#selectordef-host0
45+
"host",
46+
// https://fullscreen.spec.whatwg.org/#:fullscreen-pseudo-class
47+
"fullscreen",
48+
// https://html.spec.whatwg.org/multipage/semantics-other.html#pseudo-classes
49+
"autofill", "defined"
3950
};
4051

4152
private static final String[] PSEUDOCLASS_CONSTANTSCSS2 = {
@@ -64,7 +75,9 @@ public class PseudoFactory {
6475
// https://www.w3.org/TR/2020/WD-css-pseudo-4-20201231/#treelike
6576
"before", "after", "marker", "placeholder", "file-selector-button",
6677
// https://fullscreen.spec.whatwg.org/#::backdrop-pseudo-element
67-
"backdrop"
78+
"backdrop",
79+
// https://www.w3.org/TR/2019/CR-webvtt1-20190404/#css-extensions
80+
"cue", "cue-region"
6881
};
6982

7083
private static final String[] PSEUDOELEMENT_CONSTANTSCSS2 = {

0 commit comments

Comments
 (0)