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

Hi everyone, just wanted to let you know that we've put together some early ideas on anchored positioning for browser-managed, top-layer elements in this explainer: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/CSSAnchoredPositioning/explainer.md

Both the primary proposal (using at-rules) and "Alternate A" (using a `position-set()` function in property values) are viable options to explore. Alternate A might actually be better from an implementation perspective, as that eases up on some of the dependencies on layout. We've invited authors to provide feedback on which syntax better meets their needs—or if there is another option that would be better suited.

We've just presented this to the Open UI CG for early feedback today; planning to discuss at the next telecon (June 17) which next steps we want to take w/r/t incubating a solution for anchored positioning. This proposal errs on the side of author control, but there might be some web devs who'd rather exchange some control in trade for a simpler syntax. I expect we'll chat about flexibility vs magic in upcoming discussions, and figure out whether to a) refine these ideas, b) go down a simpler path, or c) come up with a system where control and simplicity can more easily co-exist.

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


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

Received on Thursday, 10 June 2021 21:20:23 UTC