<details> element is tabbable via keyboard but has a computed tabIndex of -1

Đang mở
#175 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
html
Lĩnh vực
accessibility, testing

Hướng nghiên cứu

Start with the proposed test file in wpt/focus and review nearby focus tests for conventions. Cover a details element without a nested summary, verifying its keyboard focusability and computed tabIndex, then confirm the test captures the expected behavior across browsers.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The <details> element remains focusable and operable via keyboard even when no <summary> is nested. Given this behavior, I would expect its computed tabIndex value to be 0. However, none of the major browsers expose it as such (all return -1).

I understand that WPT currently focuses on testing accessible names and roles, but considering there is an existing folder in WPT called "focus", it might be reasonable and feasible to include this scenario as well.

I've added a file in wpt/focus, but feel free to remove, update, or modify it if it's misplaced or if the approach is incorrect.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
57
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của web-platform-tests/interop-accessibility

Tất cả issue của web-platform-tests/interop-accessibility

Issue tương tự

Thêm issue về Accessibility

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.