Re: [csswg-drafts] [css-scroll-snap] [css-scroll-anchoring] Clarify the interaction between snapping and scroll anchoring (#4830)

The CSS Working Group just discussed `[css-scroll-snap] [css-scroll-anchoring] Clarify the interaction between snapping and scroll anchoring`, and agreed to the following:

* `RESOLVED: scroll-snap overrides scroll-anchoring for behavior heuristics`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-scroll-snap] [css-scroll-anchoring] Clarify the interaction between snapping and scroll anchoring<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/4830<br>
&lt;dael> Rossen_: Do we have a proposal? Who wants to introduce?<br>
&lt;dael> fantasai: I think this is a question of what wins between snapping and scroll-anchoring. I think scroll-snap wins. Not sure. I was looking for feedback from WG.<br>
&lt;dael> Rossen_: To make sure I got it, is the question which of the two prevails if I have scroll-snapping and scroll-anchoring?<br>
&lt;dael> fantasai: That's my interpretation. emilio filed it<br>
&lt;argyle> q+<br>
&lt;jensimmons> q-<br>
&lt;Rossen_> q?<br>
&lt;Rossen_> ack argyle<br>
&lt;dael> argyle: Updating a comment on the thread. Been building with scroll-snapping. Should target be similar to anchoring? Trying to clarify. Page wills croll to hash in URL?<br>
&lt;dael> smfr: Scroll-anchor is page maintain scroll position in face of content changes<br>
&lt;dael> argyle: So similar to scroll-snaping maintain position on resize and things like that.<br>
&lt;dael> smfr: yes<br>
&lt;dael> argyle: I guess I'm confused as to what this is trying to clarify.<br>
&lt;dael> smfr: Let's have emilio summarize<br>
&lt;dael> emilio: I filed this before we defined for layout to resnap. If we always resnap after layout I don't think there's an issue<br>
&lt;fantasai> emilio, resnapping was in the spec before you filed this :)<br>
&lt;dael> argyle: Have an issue where you refresh vs hit page first time what wins, target or scroll position. How many nested scrollers are restored. Sounds like this is more pointed then that case<br>
&lt;Rossen_> q<br>
&lt;dael> smfr: Question for emilio . What does snapping and anchoring have different ends states? If snapping is in place and scrolling you snap to something. Does scroll anchoring yank you away?<br>
&lt;dael> emilio: I guess ideally it shouldn't. I wonder if there are edge cases where scroll position is collapsed and so on<br>
&lt;dael> emilio: I could have added more details to the issue originally when this was in my head<br>
&lt;dael> Rossen_: Do we move on at this point? Sounds like there is no issue anymore<br>
&lt;dael> emilio: I'll try and look and reopen if I find something<br>
&lt;dael> Rossen_: Back to original question as to which overrides, snapping or anchoring. fantasai supposes snapping is favored over anchoring. Do we have this explicitly? If not it's good to be explicit so there's stable expectations for authors<br>
&lt;argyle> https://web.dev/snap-after-layout/<br>
&lt;dael> Rossen_: Are you suggesting this b/c we don't have it specified?<br>
&lt;argyle> https://drafts.csswg.org/css-scroll-snap-1/#re-snap<br>
&lt;dael> fantasai: Seems emilio got confused so might as well clarify<br>
&lt;dael> Rossen_: Anyone who believes we should favor anchor? Obj to scroll-snap overriding scroll-anchoring for behavior heuristics?<br>
&lt;dael> RESOLVED: scroll-snap overrides scroll-anchoring for behavior heuristics<br>
</details>


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


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

Received on Wednesday, 30 September 2020 16:23:21 UTC