Sphere
Log in Join
☆ 5

content-visibility makes the scrollbar jump around

I added content-visibility: auto to a long feed. Scrolling is much smoother but the scrollbar length changes as sections render. I set contain-intrinsic-size: auto 180px.

⚑ Report

3 replies

☆ 0
N Nick ·2026-10-26#1

180 px is a guess. If your real cards are 260 px, the browser corrects the estimate and the scrollbar shifts.

⚑ Report
☆ 0
M Mara ·2026-10-26#2

My cards vary between 180 and 320 px depending on the text length.

⚑ Report
☆ 0
Y Yuki ·2026-10-27#3

Give a realistic average like 250 px, or normalise card heights. The property is an estimate, so accuracy matters more than the keyword.

⚑ Report
Log in to reply.