- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Fri, 03 Mar 2023 18:57:05 +0000
- To: public-fxtf-archive@w3.org
It's properly got nothing to do with top/left; the default starting point is just "where the box is at the end of layout" (then adjusted by `offset-anchor` to find the precise point in that box). `offset-position` is useful because it means you don't need to manually position the box where you want it to start using normal layout, you can just specify it directly. In particular, it makes it much easier to start the box centered in its container - `50% 50%` for both `offset-position` and `offset-anchor`. (Note that the only reliable way to put an arbitrarily-sized box in the center of its container currently requires you to use `transform` (`left: 50%; top: 50%; transform: translate(-50%, -50%);`), which is applied *after* `offset`, so it doesn't work here. ^_^ When impls get `place-self` working correctly on abspos that'll change, but this is still a nice convenience.) -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/499#issuecomment-1453970484 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 3 March 2023 18:57:07 UTC