Re: [csswg-drafts] [cssom-view] `getClientRects()` should return a flattened list of child rects for `display: contents` (#12040)

This might be going out of bounds of scope on this particular topic, and if it is, I'm happy to raise this as a thing elsewhere.

> It would. display:contents elements are completely transparent to layout, we can't use them for anchor positioning because they don't exist.

I guess I'm wondering if this ought to be some sort of exception. If one of the reasons behind having `display: contents` give a non-zero bounding box is to let popover component authors attach their popovers to that element despite it not being part of layout, then I'd posit that we ought to be able to do the same with browser-native popover/anchor.

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


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

Received on Saturday, 5 April 2025 16:41:46 UTC