<dialog> element isn't rendered correctly in High Contrast Mode
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox100 | --- | fixed |
People
(Reporter: calixte, Assigned: emilio)
References
()
Details
(Keywords: access)
Attachments
(2 files)
STR:
- open https://css-tricks.com/some-hands-on-with-the-html-dialog-element/
- in accessibility settings, select a contrast theme
- see how the dialog is rendered in the above page
It always uses the same colors scheme (black border, kind of white in background and black in foreground) whatever the contrast theme is.
It's working correctly in chrome an in edge.
| Assignee | ||
Comment 2•3 years ago
|
||
https://html.spec.whatwg.org/#flow-content-3 has:
background: white;
color: black;
And it's in a UA sheet so that's what we do. That should be using a system color instead.
| Assignee | ||
Comment 3•3 years ago
|
||
I filed https://github.com/whatwg/html/issues/7754 for this, it should be a matter of updating html.css.
| Assignee | ||
Comment 4•3 years ago
|
||
To be landed when https://github.com/whatwg/html/issues/7754 has a resolution,
but I think it should be uncontroversial.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Attached is a screenshot of the existent behavior of Firefox 98.0.1 on Windows 11 with OS-powered HCM "Night Sky" active.
The dialog has white background with black border and foreground colors, while it should be reversed (as seen on the right hand side on the Accessibility > Contrast themes OS dialog.
Note: buttons within the <dialog> are rendered as prescribed by the Win HCM.
Updated•3 years ago
|
Comment 8•3 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
Description
•