Stacking Context
스태킹 컨텍스트
스태킹 컨텍스트는 CSS 레이어의 로컬 그룹입니다. 항목들은 먼저 그룹 내부에서 순서가 정해지고, 그 다음 전체 그룹이 다른 그룹 중에서 배치됩니다.
다른 예시
모달은 변경된 카드 안에 있으며, 별도의 페이지 헤더 옆에 있습니다. z-index: 9999조차 카드의 스태킹 컨텍스트 밖으로 모달을 이동시킬 수 없습니다. z-index 값은 자신이 속한 컨텍스트 안에서만 비교됩니다.
주요 부분
- 01컨텍스트 루트
- 02로컬 페인트 순서
- 03원자적 형제 순서
사용할 때
한 겹친 자식이 다른 레이어 그룹의 항목 위로 올라갈 수 없는 이유를 설명할 때 이 용어를 사용하십시오.
다음 경우에는 사용하지 마세요
전체 페이지를 하나의 z-인덱스 스케일로 다루거나 컨텍스트 루트를 찾기 전에 큰 값을 추가하지 마세요.
코드에서 사용된 이름
context root → local paint order → atomic sibling 출시하기 전에
Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.
Outcome:Complete the task with 스태킹 컨텍스트 (Stacking Context)。 User context:모달은 변경된 카드 안에 있으며, 별도의 페이지 헤더 옆에 있습니다. z-index: 9999조차 카드의 스태킹 컨텍스트 밖으로 모달을 이동시킬 수 없습니다. z-index 값은 자신이 속한 컨텍스트 안에서만 비교됩니다. Design concept to apply:스태킹 컨텍스트 (Stacking Context)。 Why it fits:한 겹친 자식이 다른 레이어 그룹의 항목 위로 올라갈 수 없는 이유를 설명할 때 이 용어를 사용하십시오. Do not use it when:전체 페이지를 하나의 z-인덱스 스케일로 다루거나 컨텍스트 루트를 찾기 전에 큰 값을 추가하지 마세요. Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary):공식 문서라고 해도 초안, 출시 후보, 최종 버전일 수 있어요. 상태와 브라우저나 플랫폼 지원 여부를 꼭 확인하세요. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
이 요청을 확인하세요
Review how 스태킹 컨텍스트 (Stacking Context) is used now. Definition: 스태킹 컨텍스트는 CSS 레이어의 로컬 그룹입니다. 항목들은 먼저 그룹 내부에서 순서가 정해지고, 그 다음 전체 그룹이 다른 그룹 중에서 배치됩니다. Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.