Elements without any styling should be dark in dark mode
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: ris58h, Unassigned)
Details
Attachments
(1 file)
|
109 bytes,
text/html
|
Details |
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.
Updated•5 years ago
|
Comment 1•5 years ago
•
|
||
(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.
(In reply to Daniel Holbert [:dholbert] from comment #1)
...and we're following that spec requirement here.
Oh I see now.
Description
•