revealjs: the `axe` option checks contrast only on the slide shown when the deck loads
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, playwright
- Lĩnh vực
- accessibility, testing-qa
Hướng nghiên cứu
Start with src/resources/formats/html/axe/axe-check.js, especially init() and revealUnhideSlides() at the linked lines, and trace how reveal.js slide visibility affects axe's color-contrast rule. Reproduce with the two-slide Quarto deck in the issue and compare the initial scan with a scan after changing slides. Done means contrast failures on non-current slides are reported, or the report clearly states that only the current slide was checked.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
In a revealjs deck, axe runs once, at page load. init() sets up a rescan only for dashboards, not on slide change:
Before the scan, revealUnhideSlides() removes hidden, aria-hidden and inert from every slide so that all slides get checked:
But reveal.js also gives the slides that are not shown opacity: 0 (classes past and future).
axe treats them as invisible and skips them for color-contrast, so only the slide that is current at load is checked, usually the title slide.
Rules that do not depend on visibility still run on the other slides: an <img> without alt on the last slide is reported by axe: true at load.
The bgOverlap incomplete results of #14964 are a separate problem, on the current slide.
Steps to reproduce
---
title: Deck
format:
revealjs:
axe: true
---
## Slide
[Light grey text on white]{style="color: #cccccc;"}
## Another slide
[More light grey text]{style="color: #cccccc;"}
Open the deck at 1400x900. After the axe check has finished (body[data-quarto-axe-complete]), remove hidden, aria-hidden and inert from .reveal .slides > section as revealUnhideSlides() does, and run axe.run(document, {runOnly: {type: "rule", values: ["color-contrast"]}}).
Actual behavior
- Quarto's
axe: trueprints nothing about contrast in the console. - After the unhide, both grey-text slides have
display: block,visibility: visibleandopacity: 0. - axe 4.10.3 and axe 4.14.1 both return no
color-contrastviolation and no incomplete result for the grey text. - With
Reveal.slide(1)before running axe, axe 4.14.1 reports the grey text on that slide: "Element has insufficient color contrast of 1.6 (foreground color: #cccccc, background color: #ffffff, ...)". - With
<img src="logo.svg">added to the last slide,axe: truelogs theimage-altfailure at load, while that slide hasopacity: 0.
Expected behavior
color-contrast checks every slide, or the report says that only the current slide was checked.
Your environment
- IDE: none (terminal), Chromium via Playwright
- OS: Windows 11
- Same with Quarto 1.11.9, 1.12.3 and current
main(cda4102).
Quarto check output
Quarto 1.12.3
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.13.0: OK
Dart Sass version 1.107.1: OK
Deno version 2.9.8: OK
Typst version 0.15.1: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.12.3
[>] Checking tools....................OK
TinyTeX: v2026.11
VeraPDF: 1.30.3
Chrome Headless Shell: (not installed)
- Ngôn ngữ chính
- JavaScript
- Star
- 6.2k
- Fork
- 492
- Merge trung bình
- 15 giờ 15 phút
- Pull request đã merge (30 ngày)
- 94
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quarto-dev/quarto-cli
-
bootstrap enhancement themes
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
quarto-dev/quarto-cli#15421 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
quarto-dev/quarto-cli#15408 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
quarto-dev/quarto-cli#15401 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug callouts docx regression
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 81/100
quarto-dev/quarto-cli#15394 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug lightbox
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
quarto-dev/quarto-cli#15393 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/quarto-cli
Issue tương tự
-
bug help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
LangerSword/gitone#7 ·
-
good first issue reliability security should-have
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 13 ngày
-
[BUG]: chunkSource protocol stripping truncates URLs or reads an inner schemeCó thể đã có người làm @Bensonbenyi đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Mintplex-Labs/anything-llm#7338 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày