Re: [csswg-drafts] [css-style-attr] Feature suggestion: support for inline media queries in HTML (#12036)

The kind of syntax you're suggesting - putting square brackets in attribute names - doesn't exist in HTML and it would be difficult to add that. It would require changes to the HTML parser and the DOM. Can I suggest you revise your proposal so that the inline media queries are inside the attribute value string?

That said, it would be helpful to know what problem you think needs solving here. Why is it desirable to 'make it easier to write responsive styles without having to jump over to `<style>` tags or external stylesheets'? What problem have you had writing your styles in a stylesheet?

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


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

Received on Tuesday, 1 April 2025 23:25:41 UTC