Re: [csswg-drafts] [css-positioning] position: popover proposal (#5699)

I remember wanting a solution for use cases like this at least a few times. But is it really a new positioning scheme? I'd prefer something that works orthogonally to `position`. The goal is to allow the element to be hoisted for some parts of styling as much as possible, breaking from ancestors' context. I see two main differences from regular behaviour:
- painting order: we want it on top of other stuff, even that in other stacking contexts;
- overflow: the element should overflow its ancestors even if they normally don't allow it.

Of course this also needs working out the details. Probably `contain` should trump hoisting. Maybe there should also be a property preventing descendants from being hoisted further. Not necessarily a binary one – perhaps named hoisting contexts would be useful.

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


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

Received on Sunday, 8 November 2020 05:42:39 UTC