Re: [csswg-drafts] [css-contain-3] Define a syntax for style-based container queries (#6396)

@deanleigh no one has implemented style container queries at this point, even in a prototype - so there's no testing to be done. But `style([data-screen-col_12="justify-content:space-between;])` will not be valid or meaningful, because (as Tab said above) `[data-screen-col_12="justify-content:space-between;]` is not a style, it's an attribute selector that happens to have some CSS-like information inside it. That attribute can be used to select and _apply_ a style, but the attribute itself is not a style. You can query `style(justify-content:space-between)` to match a container with that style applied, and you can apply that style using your attribute -- but those are two unrelated steps as far as CSS is concerned.

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


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

Received on Monday, 28 March 2022 16:29:41 UTC