content: ' ' generates invalid CSS
rbilgil opened this issue · 4 comments
rbilgil commented
When writing before
and after
pseudoelements, it's easy to mistakenly write content: '...'
instead ofcontent: '"..."'
in the content field. This generates invalid css in the stylesheet (resolving to content: px;
). This should ideally raise an error instead of failing silently and doing the wrong thing.
donaldpipowitch commented
You're right. I did this mistake, too, when I started with glamor.
miklschmidt commented
Ditto, just made the same mistake.
threepointone commented
Alright alright, seems like it'll be worth it to auto-wrap
threepointone commented
live in 2.20.28