Re: [csswg-drafts] [css-position] Ability to set a positioned element's containing block to another element (#5952)

One possible constraint / concern here: the "search" here might need to be blocked from crossing boundaries of elements that form containing blocks for their fixed-position descendants (e.g. an element with `filter` or `transform` set to a non-default value).

These properties (`filter`, `transform`, etc) are typically painted as a single layer, and are animated as a unit (e.g. if the transformed element is bouncing around the page). This proposed positioning feature could make that sort of optimization difficult, if e.g. an element with animated `transform` had a descendant that was positioned relative to some other element (particularly if that other element is also changing its position dynamically).

Similarly, it's worth thinking about how this would interact with / traverse `overflow:[hidden|scroll|auto]` and `contain:paint`.

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


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

Received on Tuesday, 9 February 2021 18:37:57 UTC