lilcss icon indicating copy to clipboard operation
lilcss copied to clipboard

Nested rules removed

Open jondashkyle opened this issue 8 years ago • 1 comments

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.

jondashkyle avatar Jun 05 '17 05:06 jondashkyle

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

jongacnik avatar Jun 05 '17 09:06 jongacnik