diff options
Diffstat (limited to 'src/css/selectorparser.nim')
-rw-r--r-- | src/css/selectorparser.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/css/selectorparser.nim b/src/css/selectorparser.nim index 012d6e68..846aa865 100644 --- a/src/css/selectorparser.nim +++ b/src/css/selectorparser.nim @@ -21,7 +21,7 @@ type PseudoClass* = enum PSEUDO_FIRST_CHILD, PSEUDO_LAST_CHILD, PSEUDO_ONLY_CHILD, PSEUDO_HOVER, - PSEUDO_ROOT, PSEUDO_NTH_CHILD, PSEUDO_CHECKED + PSEUDO_ROOT, PSEUDO_NTH_CHILD, PSEUDO_CHECKED, PSEUDO_FOCUS CombinatorType* = enum DESCENDANT_COMBINATOR, CHILD_COMBINATOR, NEXT_SIBLING_COMBINATOR, @@ -212,6 +212,8 @@ proc parseSelectorToken(state: var SelectorParser, csstoken: CSSToken) = state.addSelector(Selector(t: PSEUDO_SELECTOR, pseudo: PSEUDO_ROOT)) of "checked": state.addSelector(Selector(t: PSEUDO_SELECTOR, pseudo: PSEUDO_CHECKED)) + of "focus": + state.addSelector(Selector(t: PSEUDO_SELECTOR, pseudo: PSEUDO_FOCUS)) of QUERY_PSELEM: case csstoken.value of "before": |