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

@emilio This is not about allowing arbitrary elements to escape their containing block, that's what #5699 is about. it's about positioning elements relative to another element, so that popups can display relative to the element they are anchored to regardless of where that is, via common `top`/`right`/`bottom`/`left` properties, and without the author having to write complicated buggy JS code for this. 

In fact, these containing blocks could often be *smaller* than the popup that is positioned relative to them. For example, take a look at this popup for editing an `<a>` element's source:
![image](https://user-images.githubusercontent.com/175836/107301606-c9755980-6a49-11eb-8c28-9187c678d045.png)


-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5952#issuecomment-775578754 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 01:14:25 UTC