💭

How position: sticky works

2022/12/08に公開
  • Positioned according to the normal flow of document
  • Offset relative to nearest scrolling ancestor and containing block
  • Creates new stacking context
  • Stuck when it meets the oppsite edge of its containing element

参考

Discussion