<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Scroll-Anchoring on Ryan Hunt's Blog</title><link>https://eqrion.net/tags/scroll-anchoring/</link><description>Recent content in Scroll-Anchoring on Ryan Hunt's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 28 Mar 2019 05:08:02 -0600</lastBuildDate><atom:link href="https://eqrion.net/tags/scroll-anchoring/index.xml" rel="self" type="application/rss+xml"/><item><title>Implementing a pin-to-bottom scrolling element with only CSS</title><link>https://eqrion.net/pin-to-bottom/</link><pubDate>Thu, 28 Mar 2019 05:08:02 -0600</pubDate><guid>https://eqrion.net/pin-to-bottom/</guid><description>&lt;p&gt;Have you ever tried implementing a scrollable element where new content is being added and you want to pin the user to the bottom? It&amp;rsquo;s not trival to do correctly.&lt;/p&gt;
&lt;p&gt;I recently worked on a new CSS feature called &amp;lsquo;scroll anchoring&amp;rsquo; that shipped in &lt;a href="https://www.mozilla.org/en-US/firefox/66.0/releasenotes/"&gt;Firefox 66&lt;/a&gt; (for an introduction, check out my post on &lt;a href="https://hacks.mozilla.org/2019/03/scroll-anchoring-in-firefox-66/"&gt;Mozilla Hacks&lt;/a&gt; or the summary on &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor/Guide_to_scroll_anchoring"&gt;MDN&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;While implementing this feature, &lt;a href="https://twitter.com/nicolaschevobbe"&gt;Nicolas Chevobbe&lt;/a&gt; and I were debugging an issue and discovered that scroll anchoring can be used to create a pin-to-bottom scrolling element without any Javascript.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s a neat trick, so I thought I&amp;rsquo;d post the snippet here and explain how it works.&lt;/p&gt;</description></item><item><title>Scroll Anchoring in Firefox 66</title><link>https://eqrion.net/scroll-anchoring/</link><pubDate>Thu, 28 Mar 2019 05:07:02 -0600</pubDate><guid>https://eqrion.net/scroll-anchoring/</guid><description>&lt;p&gt;I wrote an &lt;a href="https://hacks.mozilla.org/2019/03/scroll-anchoring-in-firefox-66/"&gt;article&lt;/a&gt; about the work on scroll anchoring that I did for Firefox 66.&lt;/p&gt;
&lt;p&gt;Check it out!&lt;/p&gt;</description></item></channel></rss>