3 ms·
You are partially right. I've added a test with simple selectors: classnames, pseudo. BOSS expands nesting with underscore separation only in case of BEM selec
by lvivski 14y ago
You are partially right. I've added a test with simple selectors: classnames, pseudo.
BOSS expands nesting with underscore separation only in case of BEM selectors (Blocks, Elements, Modifiers)
But it uses cascading with all other selectors, see "test/standard.boss" and "test/standard.css"
- deleted 14y ago[deleted]
- catshirt 14y agothanks for clearing that up. for what it's worth the readme fails to explain this, and now i'm actually left with more questions. if a selector with no preceding notation is reserved for BEM blocks- how would i reference an element by tag?
- lvivski 14y agothere is a list off all HTML tags, if a tag with that name exists, it will be treated as a TAG, if it doesn't, it will be treated as a BEM block. That simple. This gives some restrictions to Blocks' names, but it's not a big problem, cause normally you won't give block a name which matches existing HTML tag. The same restrictions are for Modifiers (pseudo-selectors) if it exists, then pseudo, else Modifier.