Pseudo-class
의사 클래스
의사 클래스(pseudo-class)는 CSS 선택자의 일부입니다. 상태, 위치, 언어, 사용자 동작 등의 조건으로 요소를 찾습니다.
다른 예시
한 양식은 키보드 포커스에 `:focus-visible`을 사용합니다. 상호작용 후 `:user-invalid`를 사용하고 제출 불가능할 때 `:disabled`를 사용합니다. 터치 사용자는 고정되는 호버 스타일을 받지 않습니다. 서버 오류는 단순히 의사 클래스 스타일이 아니라 실제 DOM 텍스트로 남습니다.
주요 부분
- 01콜론 접두 조건
- 02일치된 요소 상태
- 03조건부 선언
사용할 때
실제 브라우저 상태에는 표준 의사 클래스(pseudo-classes)를 사용하세요. 상태를 의미 있게 유지하고 접근 가능한 피드백도 제공하세요.
다음 경우에는 사용하지 마세요
중요한 비즈니스 상태를 hover, focus 또는 위치에만 저장하지 마세요. 입력 방식과 DOM 순서 변경을 견뎌야 합니다.
코드에서 사용된 이름
:hover, :focus-visible, :checked, :disabled, :has(), :lang() 출시하기 전에
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 의사 클래스 (Pseudo-class)。 User context:한 양식은 키보드 포커스에 `:focus-visible`을 사용합니다. 상호작용 후 `:user-invalid`를 사용하고 제출 불가능할 때 `:disabled`를 사용합니다. 터치 사용자는 고정되는 호버 스타일을 받지 않습니다. 서버 오류는 단순히 의사 클래스 스타일이 아니라 실제 DOM 텍스트로 남습니다. Design concept to apply:의사 클래스 (Pseudo-class)。 Why it fits:실제 브라우저 상태에는 표준 의사 클래스(pseudo-classes)를 사용하세요. 상태를 의미 있게 유지하고 접근 가능한 피드백도 제공하세요. Do not use it when:중요한 비즈니스 상태를 hover, focus 또는 위치에만 저장하지 마세요. 입력 방식과 DOM 순서 변경을 견뎌야 합니다. 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 의사 클래스 (Pseudo-class) is used now. Definition: 의사 클래스(pseudo-class)는 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.