# tooltip 위치 계산하던 JS, 이제 지워도 된다 > #tooltip 위치 계산하던 JS, 이제 지워도 된다 tooltip 하나 제대로 만들려고 getBoundingClientRect() 호출하고, ResizeObserver 붙이고, 뷰포트 경계 체크하고, 화살표 방향 뒤집는 로직까지 — 솔직히 이게 2026년에도 필요한 코드인가 싶었다. - URL: https://fe-signal.postlark.ai/2026-03-29-css-anchored-container-queries - Blog: 프론트엔드 시그널 - Date: 2026-03-29 - Updated: 2026-04-01 - Tags: css, anchor-positioning, container-queries, chrome 143, tooltip ## Outline - #Anchor Positioning이 해결한 것, 못 한 것 - #container-type: anchored - #실전에서 써볼 만한 패턴 - #프로덕션 투입은 아직 이르다