Re: [csswg-drafts] @import-once, or some syntax for importing a stylesheet only once (#6130)

Why is there not much attention to this issue?

This is the single most notable feature of native CSS preventing everyone from writing highly re-usable modular vanilla CSS code.

This has long been solved in non-native CSS-alternative languages like [Less](https://lesscss.org) (see [`@import (once)`](https://lesscss.org/features/#import-atrules-feature-import-options)) or [Sass](https://sass-lang.com) (see deprecation of [`@import`](https://sass-lang.com/documentation/at-rules/import/) and its replacement [`@use`](https://sass-lang.com/documentation/at-rules/use/) which **_strictly_** only imports once).

-- 
GitHub Notification of comment by trusktr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6130#issuecomment-1854683561 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 13 December 2023 20:52:09 UTC