Hacker News new | past | comments | ask | show | jobs | submit login

The problem of applying multiple classes to an element arises when the definition of one class expects another css class to be applied to all the same elements because there is an implicit inheritance relationship between them. Keeping inheritance in the stylesheet allows the implementation details of those classes to be kept together instead of leaking out to the html and causing display bugs (which are very hard to unit test).



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: