|
22 | 22 | public class PseudoFactory {
|
23 | 23 |
|
24 | 24 | 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", |
28 | 41 | "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" |
39 | 50 | };
|
40 | 51 |
|
41 | 52 | private static final String[] PSEUDOCLASS_CONSTANTSCSS2 = {
|
@@ -64,7 +75,9 @@ public class PseudoFactory {
|
64 | 75 | // https://www.w3.org/TR/2020/WD-css-pseudo-4-20201231/#treelike
|
65 | 76 | "before", "after", "marker", "placeholder", "file-selector-button",
|
66 | 77 | // 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" |
68 | 81 | };
|
69 | 82 |
|
70 | 83 | private static final String[] PSEUDOELEMENT_CONSTANTSCSS2 = {
|
|
0 commit comments