Re: [csswg-drafts] [css-scroll-anchoring] [css-scroll-snap] What's the optimal viewing rect on the root scroller? (#4393)

The CSS Working Group just discussed `What's the optimal viewing rect on the root scroller?`, and agreed to the following:

* `RESOLVED: Use visual viewport for snapping and layout viewport for scroll-padding percentages.`

<details><summary>The full IRC log of that discussion</summary>
&lt;heycam> Topic: What's the optimal viewing rect on the root scroller?<br>
&lt;heycam> github: https://github.com/w3c/csswg-drafts/issues/4393<br>
&lt;heycam> emilio: while working through some scroll anchoring issues<br>
&lt;heycam> ... you need to decide what rect to anchor stuff to<br>
&lt;heycam> ... Firefox uses visual viewport, I think Blink uses layout viewport<br>
&lt;heycam> ... but are kind of reasonable<br>
&lt;heycam> ... but for layout viewport, need to decide the effect of padding etc.<br>
&lt;heycam> fantasai: my proposal is to use visual viewport, but that %s on the scroll-padding reference the layout viewport<br>
&lt;heycam> s/of padding/of scroll-padding/<br>
&lt;heycam> ... that's where you're likely to block out content<br>
&lt;heycam> TabAtkins: if we snap in the visual viewport, and you bring up the keyboard, it has to move?<br>
&lt;heycam> jensimmons: it depends<br>
&lt;heycam> fantasai: can leave that to the UA<br>
&lt;heycam> TabAtkins: sounds complicated, but I think that's the best route<br>
&lt;heycam> emilio: I think it's pretty reasonable<br>
&lt;heycam> iank_: seems like David is fine with this change<br>
&lt;heycam> fantasai: sounds like Blink is doing that<br>
&lt;fantasai> https://github.com/w3c/csswg-drafts/issues/4393#issuecomment-537844295<br>
&lt;heycam> Rossen: currently using the layout viewport, but if you're zoomed in you're not snapped at all<br>
&lt;heycam> iank_: but sounds like David Bokand is fine to switch to the visual viewport?<br>
&lt;heycam> s/Bokand/Bokan/<br>
&lt;heycam> RESOLVED: Use visual viewport for snapping and layout viewport for scroll-padding percentages.<br>
</details>


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

Received on Wednesday, 22 January 2020 15:19:52 UTC