demo · v135

Scroll recovery lab

Anchor positioning can pick a fallback when an anchor scrolls out of frame. Chrome 135 adds remembered scroll offset so the tooltip pinned to that anchor sticks to a stable visual home rather than snapping back and forth. Watch the difference: with the offset disabled, the tooltip flickers; with it on, it stays where the user expects.

anchor positioning: ? remembered offset: ?
remembered-offset: ON — tooltip latches to last best position.

the CSS

.tooltip {
  position: absolute;
  position-anchor: --pin;
  /* Chrome 135+: remember the position offset chosen by the engine
     so that as the anchor scrolls, the tooltip doesn't oscillate. */
  position-try-fallbacks: --flip-up;
  position-try-order: most-height;
}

see also