Closed JaneOri closed 2 years ago
Thanks, actually there's no regex for selector parsing, that's done here: https://github.com/matthewp/corset/blob/main/src/parser.c#L172
Here's a reproduction: https://codepen.io/matthewp/pen/dyZgdWB
Pretty sure it's because we are not allowing numbers in selectors: https://github.com/matthewp/corset/blob/main/src/parser.c#L172-L190
copying over from the twitter DMs and adding more info ~ If I have this
Test
Corset component (A):and this higher level App component that consumes it (B):
And this is index.html (C)
```html ```I get this output with a single working counter:
If I change the selector in my
sheet
from (B) to either of these variants below, both counters will be populated and working:I believe it's in part because of the hyphen in the selector because
.counter-1 { ... }
by itself also does not work even though.shared
doesHappy to poke the regex myself and suggest the fix if you can to point me to it!