Closed Bug 1761611 Opened 3 years ago Closed 3 years ago

<dialog> element isn't rendered correctly in High Contrast Mode

Categories

(Core :: DOM: Core & HTML, defect, P2)

Unspecified
Windows 11
defect

Tracking

()

RESOLVED FIXED
100 Branch
Accessibility Severity s3
Tracking Status
firefox100 --- fixed

People

(Reporter: calixte, Assigned: emilio)

References

()

Details

(Keywords: access)

Attachments

(2 files)

STR:

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.

Keywords: access

Can you attach an screenshot?

Flags: needinfo?(cdenizet)

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.

Flags: needinfo?(cdenizet)

I filed https://github.com/whatwg/html/issues/7754 for this, it should be a matter of updating html.css.

To be landed when https://github.com/whatwg/html/issues/7754 has a resolution,
but I think it should be uncontroversial.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P2

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.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8f2f77d1e339 Make <dialog> styles use system colors. r=morgan
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/33390 for changes under testing/web-platform/tests
Whiteboard: [access-s3]
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1761837
Accessibility Severity: --- → s3
Whiteboard: [access-s3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: