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

But it’s not just about overriding a specific property at each breakpoint. My suggestion also allows you to add new styles, like transitioning from a flow layout to a flex layout by adding display: flex at a breakpoint. I don’t want to be forced to use flex at every breakpoint. Also, in your first example, the breakpoints are 'in your face' for every property, which makes the verbosity much worse. As for the function-based solution, the level of indirection fundamentally contradicts my goal for proposing this, which is to keep all the information within the same context. That said, kudos for the solution—it’s just seems more complex and doesn’t align with the simplicity I had in mind.

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


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

Received on Wednesday, 2 April 2025 10:18:10 UTC