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

@frivoal to your statement, there are npm addons like Material-UI that inject `<style>` tags dynamically and so to manipulate their content every time is a bit annoying and hacky. I do this in our main React app, and it works, but I would like the option to set a simple attribute instead of editing the full content inside the `<style>`.

another thing is when I go over all the style tags every `<head>` change and try to set their layer I need first to check that the CSS is not already in a layer, and checking an attribute will be a lot easier.

like @digitaldonkey said more options to set CSS chunks to layers will boost feature adoption. real and messy existing apps need more tools in their arsenal for unique problems.

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


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

Received on Tuesday, 16 August 2022 08:35:32 UTC