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

I am generally happy with the proposal, but was wondering: 
Is attribute syntax something we could look into?

```
... style(width)$='%' ... {
   /* style to use if the container is percentage-sized */
}
```

This would allow to use custom properties that are space-separated lists of toggles, then use `|=` to query each token independently. 

Just food for thought.

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


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

Received on Wednesday, 6 October 2021 11:37:40 UTC