Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Use nesting in CSS #245

Closed
jeddy3 opened this issue Jul 26, 2018 · 0 comments · Fixed by #246
Closed

Use nesting in CSS #245

jeddy3 opened this issue Jul 26, 2018 · 0 comments · Fixed by #246
Assignees

Comments

@jeddy3
Copy link
Contributor

jeddy3 commented Jul 26, 2018

Because:

The scope of spec is narrower than the nesting in preprocessors like Sass. We can use stylelint to limit nesting to direct nesting with the explicit & (i.e. disallows @nest for now).

To be nest-prefixed, a nesting selector must be the first simple selector in the first compound selector of the selector.

It feels like it'd be great for pseudo-classes and the like. Improving the readability of the code without opening the can of worms that can be nesting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant