Re: [fxtf-drafts] [motion-1] offset-position:auto has bad behavior (#501)

The CSS Working Group just discussed `[motion-1] offset-anchor:auto is nonsensical`, and agreed to the following:

* `RESOLVED: offset-position: auto uses offset-anchor point`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> TabAtkins: When using offset-position: auto; and offset-anchor<br>
&lt;fantasai> TabAtkins: offset-position means "start from box's position"<br>
&lt;fantasai> TabAtkins: offset-anchor says which point you put on the path<br>
&lt;fantasai> TabAtkins: as written, offset-position uses top left corner<br>
&lt;fantasai> TabAtkins: offset-anchor uses center<br>
&lt;fantasai> TabAtkins: means that by default you get this slight shift<br>
&lt;fantasai> TabAtkins: seems bad and weird<br>
&lt;fantasai> TabAtkins: I think this is one of the things that fell through the cracks<br>
&lt;fantasai> TabAtkins: my proposal is when offset-position: auto is used, we start from the offset-anchor point<br>
&lt;fantasai> TabAtkins: so wherever the box is, that's where it will start from<br>
&lt;fantasai> TabAtkins: and will start moving from that point instead of shifting a little bit<br>
&lt;fantasai> TabAtkins: The examples show that the current behavior is expected, but seems bad<br>
&lt;fantasai> +1<br>
&lt;fantasai> PROPOSED: offset-position: auto honors offset-anchor<br>
&lt;fantasai> florian: Only bit that worries me is that we don't know why we decided the way we did<br>
&lt;fantasai> TabAtkins: reason why was probably because we based it on the position stuff<br>
&lt;fantasai> TabAtkins: if you wanted a ray from the center, easiest way is left: 50%; top: 50% which puts your left top in the center<br>
&lt;fantasai> TabAtkins: to actually center your box, you'd have to use a transform hack<br>
&lt;fantasai> TabAtkins: with previous resolution, you could just say ray(at center) and get the behavior you want<br>
&lt;fantasai> TabAtkins: I think this was just confluence of a slightly weak feature and interaction with position<br>
&lt;fantasai> florian: seems convincing enough<br>
&lt;fantasai> RESOLVED: offset-position: auto uses offset-anchor point<br>
&lt;fantasai> github: https://github.com/w3c/fxtf-drafts/issues/501<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/501#issuecomment-1466255776 using your GitHub account


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

Received on Monday, 13 March 2023 14:33:11 UTC