Published on2026년 7월 22일display: none 을 transition 하기 — allow-discrete 와 @starting-style (Transition to and from display: none)csstilkevin-powelldisplay: none ↔ display: grid 전환은 discrete 속성이라 transition 이 안 걸렸다. transition-behavior: allow-discrete 로 닫힐 때의 페이드아웃을, @starting-style 로 열릴 때의 시작 상태를 지정하면 양방향 모두 transition 된다. 두 줄이면 끝난다.