Re: [csswg-drafts] [css-contain-3] What container features can be queried? (#5989)

@argyleink so pseudo-codeā€¦

```css
@container (width < 30em) and (nodes > 3) {
  .crumb-label { /* hide */ } 
}
```

Is that what you mean? I feel like the node-count would be more powerful if you could use it in a selector, without the limitation of needing to query a distinct container. Then you could still combine it with queries, but it wouldn't rely on them. More pseudo-code:

```css
@container (width < 30em) {
  .breadcrumb:nodes(>3)  .crumb-label { /* hide */ } 
}
```

I don't know if that's viable, but I don't think that should require a container for any reason?

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


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

Received on Friday, 11 June 2021 02:15:34 UTC