- From: Una Kravets via GitHub <sysbot+gh@w3.org>
- Date: Wed, 09 Feb 2022 15:45:54 +0000
- To: public-css-archive@w3.org
My main issue with this is I just don't think it's a reasonable default to assume that a user wants to query the style of a direct parent in a container query. In my current experience with CQ, the majority of my demos and use cases do not query the direct parent. To help illustrate: ## [CQ Card](https://codepen.io/web-dot-dev/pen/LYzxgxP) - adjusting styles of `.desc` which is within a block called `.meta` but I'm querying the parent `.card`'s container size ![Screen Shot 2022-02-09 at 10 24 19 AM](https://user-images.githubusercontent.com/1693164/153232841-292d488d-1065-42e8-a5ad-1a8a7337ec53.png) in: ![Screen Shot 2022-02-09 at 10 28 50 AM](https://user-images.githubusercontent.com/1693164/153233351-2cace09e-181a-4a54-b1c6-92295d67cd50.png) ## [Button Component Inside CQ Card](https://codepen.io/una/pen/zYdJvvw) - The `span` within `.btn-text` is querying `button` - `button` within `div` within `.card` is querying `card-container` - The only thing directly querying its parent is `plus-icon` within `.cart-icon` because it happens to be organized this way ![Screen Shot 2022-02-09 at 10 30 38 AM](https://user-images.githubusercontent.com/1693164/153236138-9386901b-2a62-4485-a470-babc7ef8c923.png) in ![Screen Shot 2022-02-09 at 10 38 04 AM](https://user-images.githubusercontent.com/1693164/153235237-b7fe289e-92d4-4fbd-bea4-2448cb4e40b3.png) -- GitHub Notification of comment by una Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6393#issuecomment-1033902469 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 9 February 2022 15:45:56 UTC