lilcss
lilcss copied to clipboard
Nested rules removed
gr8 has a little utility called dev, which outputs:
.dev{outline:1px solid #912eff}
.dev > *{outline:1px solid #5497ff}
.dev > * > *{outline:1px solid #51feff}
.dev > * > * > *{outline:1px solid #ff0000}
.dev > * > * > * *{outline:1px solid #00ff00}
however, lilcss removes this, for p obvious reasons! just a note to self to hit this at some point.
Yea, nested rules get tricky (noticed this particular case with dev also). We should be able to tweak the regex a little to let certain things through like this. Ultimately a full AST walk would really catch all cases, but curious to keep pushing regex to do the job. Will take a look at this one also when I have a sec