Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

CSS imports are not equivalent of JS imports and it doesn't make sense to blame JS. The source is just a series of declarations and no dependencies, and it's simple and clear how they override each other. CSS doesn't have namespaces or modules until web components, so when you import another source you cannot choose what symbols to include (or they just don't have symbols at first place). It's almost a syntax sugar of including another <link> tag in HTML. CSS imports and JS imports have the same name but they don't have anything more in common.


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

Search: