Re: [csswg-drafts] [css-cascade] Provide an attribute for assigning a <link> to a cascade layer (#5853)

I think this is a problem worth solving, either by hacking a `supports` syntax into `media` (which can be useful in other contexts as well - /cc @jridgewell) or by going the `<style src>` route that @domenic suggested.

> @mirisuzanne These two should have the same performance (at least in Chromium). Both are captured by preload scanners.

The Chromium/WebKit preload scanner for CSS imports is significantly more fragile than its HTML equivalent, as it doesn't perform "real" tokenization. It'd be better to not put the weight of this feature's performance on it. Also, Firefox doesn't have such a preload scanner AFAIK.


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


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

Received on Friday, 3 September 2021 05:47:15 UTC