Re: [w3ctag/design-reviews] Declarative CSS Modules and Declarative Shadow DOM `adoptedstylesheets` attribute (Issue #1000)

I think resource fetching ought to be deduplicated between all of `<link>`, `<style src>`, CSS `@import`, and JS `import`, unless that's not web-compatible for some reason.

We thought the existing `@sheet` design made sense as the way to inline style in the HTML response without immediately applying it to the page. There was some discussion about whether the platform might be able to avoid adding the `adoptedStylesheets` attribute and instead somehow use `<link rel=stylesheet href="#sheetName">`, but none of the obvious ways to do that (e.g. `<style id=sheetName some-attribute-that-prevents-immediate-application>` or `<script type=text/css id=sheetName>`) seemed clearly better than adding the attribute to `<template>`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1000#issuecomment-2433714302
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1000/2433714302@github.com>

Received on Wednesday, 23 October 2024 23:05:26 UTC