Toot

Written by westbrook on 2025-01-27 at 13:26

@Lukew Import Attributes at large may not be a UI related feature, but in that they unlock with { type: 'css' } a feature that both #Mozilla and #WebKit have outlined that they are open to shipping, I'd say that was a BIG ONE that could serve so many use cases.

import style from './styles.css' with { type: 'css' };

With this a UI component that benefits from JS (read the majority of non-trivial patterns) can also deliver any CSS that it needs right inline with its usage.

=> More informations about this toot | View the thread | More toots from westbrook@mastodon.social

Mentions

=> View Lukew@toot.wales profile

Tags

=> View mozilla tag | View webkit tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113900543864402039
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
223.349093 milliseconds
Gemini-to-HTML Time
0.569277 milliseconds

This content has been proxied by September (3851b).