Baseline box: <h2> in <summary> might be a problem #8849
Labels
♿ a11y
An MDN Web Docs accessible by everyone
🐛 bug
Something isn't working, or isn't working as expected
effort: small
This task is a small effort.
idle
p2
We want to address this but may have other higher priority items.
plus:baseline
Summary
The new Baseline
<details>
element has a heading in its summary.This heading is ignored by screen readers because the entire
<summary>
content is read out as a single text summary. See the Warning box on this page:https://developer.mozilla.org/docs/Web/HTML/Element/summary#summaries_as_headings
Should the heading be there? What purpose does it have? Does this cause problems for users? Should the heading be replaced by a
<span>
?URL
https://developer.mozilla.org/docs/Web/CSS/@layer
Reproduction steps
Expected behavior
Maybe there shouldn’t be a heading in summary.
Actual behavior
There is a heading in summary.
Device
Desktop
Browser
Safari
Browser version
Stable
Operating system
Mac OS
Screenshot
Anything else?
No response
Validations
The text was updated successfully, but these errors were encountered: