linkedin / css-blocks

High performance, maintainable stylesheets.
http://css-blocks.com/
BSD 2-Clause "Simplified" License
6.34k stars 152 forks source link

Remove root element / root class special cases & validation from glimmer analyzer. #401

Open chriseppstein opened 4 years ago

chriseppstein commented 4 years ago

Glimmer no longer requires a root element so it doesn't make sense to automatically put the block's scope on the first element it finds. An explicit block:scope should be used instead.

We should also remove the validation that the "root element" cannot be a class from the block.

abritinthebay commented 4 years ago

We should also remove the validation that the "root element" cannot be a class from the block.

Can you clarify this for me a little more? Guess I need syntax to really get what you mean.