Skip to content

Commit 803b2ab

Browse files
committed
Updating the list of pseudo classes and functional pseudo classes per latest published version of css-electors-4
https://www.w3.org/TR/2018/WD-selectors-4-20181121/ This fixes #247 (in an easier way than anticipated, but still not in an satisfactory way)
1 parent c44e222 commit 803b2ab

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

org/w3c/css/selectors/PseudoFactory.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ public class PseudoFactory {
2929
"only-child", "empty",
3030
"fullscreen", "default", "valid", "invalid", "in-range",
3131
"out-of-range", "required", "optional", "read-only",
32-
"read-write", "defined", "placeholder-shown"
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", "pause", "blank", "user-invalid",
37+
38+
3339
};
3440

3541
private static final String[] PSEUDOCLASS_CONSTANTSCSS2 = {
@@ -65,7 +71,8 @@ public class PseudoFactory {
6571

6672
private static final String[] PSEUDOFUNCTION_CONSTANTSCSS3 = {
6773
"nth-child", "nth-last-child", "nth-of-type", "nth-last-of-type",
68-
"lang", "not"
74+
"lang", "not" // from selectors-4 unstable list (20190624)
75+
, "nth-col", "nth-last-col", "is", "where", "has", "dir"
6976
};
7077

7178
private static final String[] PSEUDOFUNCTION_CONSTANTSCSS2 = {

0 commit comments

Comments
 (0)