Re: [w3c/webcomponents] CSS Modules (#759)

The harm is the naming conflict and the syntax conflict.

Syntax conflict: What does `import styles from 'styles.css'` do? I know what it does now because that's the syntax for CSS modules. In the future, it will also be the syntax for CSS modules, but it will be difficult to know _which_ CSS module system is in use. Can we mix and match CSS modules with CSS modules? Does `import styles from 'style.css'` work on the server side?

These are settled questions today, but not when this feature ships. It will create significant confusion and incompatibilities between two identically named CSS module systems. That's harm.

The web community still hasn't finished absorbing the backwards compatibility problems introduced by ES modules. The old ways still work! But they look identical to the new ways, and they don't work together. That harmed the community, in hindsight. This does something similar.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/759#issuecomment-520661576

Received on Tuesday, 13 August 2019 02:14:28 UTC