Re: [csswg-drafts] [css-contain-3] Should not cq units be interpreted in the flatDom context? (#7947)

The relevant section in the spec is [ยง6](https://drafts.csswg.org/css-contain-3/#container-lengths). The spec now says:
`The query container for each axis is the nearest ancestor container that accepts container size queries on that axis.`

The issue is what is the algorithm for "nearest ancestor". Now in Chrome, the nearest ancestor container is interpreted as being the nearest container that is also in the same document as the element the `cqw` unit is applied to. But should it not simply be "the nearest ancestor container in the flatDom", same as `%` and `em`?

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


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

Received on Monday, 24 October 2022 09:21:37 UTC