Re: [csswg-drafts] [css-anchor] Allow anchoring to pointer (#8639)

I assume this `pointer` anchor's containing block is the ICB, which means only fixed positioned elements can use it.

Performance-wise it means we need a relayout on every pointer move. But maybe in most cases it won't be a big problem, since I assume in most cases the size of the element doesn't depend on pointer location -- in which case we can avoid reflowing the descendants of the element. But still this all seems to be main thread work, and I don't see a possibility of further optimization with compositor.

Btw I assume `anchor-size(pointer ...)` is either 0 or always fall back?

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


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

Received on Friday, 24 March 2023 17:45:18 UTC