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

Re: [csswg-drafts] [CSS-POSITION-4] Define a way to have a dialogue anchored to an element (#5304)

From: Una Kravets via GitHub <sysbot+gh@w3.org>
Date: Thu, 09 Jul 2020 18:49:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-656292426-1594320583-sysbot+gh@w3.org>
I love this! I feel this would be a huge help for tooltips, menus, animations, and other relationship-based interactive items without using translation and hacking around positioning. This enables dynamically sized tooltips to be positioned more easily and improve linked submenu element positioning as well.

When I think of syntax for this, I am reminded of what gradients use for radial/conic positioning. I'd love to have the ability to anchor using the keywords "at top center", "at bottom center", "at left center", "at right center", "at center", "at top left", "at top right", etc. That being said, it doesn't account for logical positioning. On the same thread as radial/conic gradient placement as well, this could be percentage-based in addition to the keywords (i.e. 20% 20%)

It sounds like this might work best as a function that accepts position values.

GitHub Notification of comment by una
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5304#issuecomment-656292426 using your GitHub account
Received on Thursday, 9 July 2020 18:49:46 UTC

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