about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-01-23 01:11:42 +0100
committerbptato <nincsnevem662@gmail.com>2022-01-23 01:11:42 +0100
commit8e1ccfe2f2809b5bbae2d311e1b30f9ffe1833f6 (patch)
tree6af8b196695149a5f0763a8540a3ad10de7189fa
parent010185f7c306f2465b691a82fcbfe1c76513f8fc (diff)
downloadchawan-8e1ccfe2f2809b5bbae2d311e1b30f9ffe1833f6.tar.gz
Fix * selector
-rw-r--r--src/css/selparser.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/css/selparser.nim b/src/css/selparser.nim
index 67f53b42..9a953c54 100644
--- a/src/css/selparser.nim
+++ b/src/css/selparser.nim
@@ -203,6 +203,8 @@ proc parseSelectorToken(state: var SelectorParser, csstoken: CSSToken) =
     of Rune('~'):
       if state.selectors[^1].len > 0 or state.combinator != nil:
         state.query = QUERY_SUBSEQ_SIBLING_COMBINATOR
+    of Rune('*'):
+      state.addSelector(Selector(t: UNIVERSAL_SELECTOR))
     else: discard
   of CSS_HASH_TOKEN:
     state.addSelector(Selector(t: ID_SELECTOR, id: $csstoken.value))