W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

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

From: Cory LaViska via GitHub <sysbot+gh@w3.org>
Date: Tue, 10 Nov 2020 15:14:21 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-724766856-1605021260-sysbot+gh@w3.org>
> I'm worried that a feature that says "i escape all of my ancestors clips" can break some optimizations that we may have.

I'm not sure it would break optimizations, but it's a fair point to consider. In the case of `position: popover`, the affected element would be virtually hoisted so we can safely ignore it when ancestors are drawn. Similarly, changes to how the popover is drawn won't affect ancestors. Both can be drawn independently.

> Did you have a specific set of things in mind that you think this property should ignore / escape?

I'm debating with myself whether `display: none` in an ancestor would cause a `position: popover` element to be hidden or not. I don't think I have a preference here.

However, it should break out of overflows and clips. Overflows are the most common cause of frustration, but I've seen clips used cleverly to achieve similar results and it would be difficult to guarantee the popover element is visible if they didn't break out.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 10 November 2020 15:14:23 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC