Closed Bug 1613434 Opened 5 years ago Closed 5 years ago

Elements without any styling should be dark in dark mode

Categories

(Core :: Layout: Form Controls, defect)

72 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ris58h, Unassigned)

Details

Attachments

(1 file)

Attached file tags.html

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

Open a HTML page with elements without any styling (see attachment)

Actual results:

The elements and background are light.

Expected results:

The elements and background should be dark.

Component: Theme → Layout: Form Controls
Product: Firefox → Core

(In reply to ris58h from comment #0)

Expected results:

The elements and background should be dark.

Can you clarify why you expect this result? (Do you have a particular configuration that you're expecting to make things default to dark? And is there another browser that matches your expectation on this?)

Note that pages can provide their own "dark mode" custom styles (to react to OS dark-mode theming) via the prefers-color-scheme query, per https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme , but that's something that sites have to opt in to and provide their own dark styling.

The HTML Standard says:
"The initial value for the 'color' property [i.e. foreground text] is expected to be black. [...] The canvas's background is expected to be white."
https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3

...and we're following that spec requirement here.

Flags: needinfo?(ris58h)

(In reply to Daniel Holbert [:dholbert] from comment #1)

...and we're following that spec requirement here.

Oh I see now.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(ris58h)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: