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

@chrishtr I see, thank you for the detailed explanation. Essentially what we need here is to be able to specify an element to position relative to, I just thought having that element act as containing block would be easier to implement. If the target element needs to be a top layer element, that is somehow positioned relative to another arbitrary element, I think that addresses most use cases as well.

> For `<popup>`, I think there is a much simpler solution in the form of an html attribute.

An HTML attribute might be a simpler solution to implement, but it violates separation of concerns, as well as the Extensible Web Manifesto (by adding new magic that cannot be specified in CSS), so I'm really hoping there is a set of constraints that would enable a CSS solution to this.

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


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

Received on Tuesday, 16 February 2021 18:22:11 UTC