Dark mode is ignored by interactive-example
s
#12879
Labels
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Summary
The examples should be inverted just like as if Dark Reader is enabled. The iframe ending with
mdnplay.dev/runner.html?blank=&theme=dark
hastheme=dark
, so whatever it's supposed to do isn't working.URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button
Reproduction steps
Expected behavior
At least the background should be dark like those for
interactive-example-choice
:With a simple hue rotate, which looks ugly but isn't the uncomfortable white from before:
With Dark Reader without "Detect dark theme":
Actual behavior
There is a patch of blinding white on the page:
Device
Desktop
Browser
Firefox
Browser version
Stable
Operating system
Linux
Screenshot
See above
Anything else?
I suggest something like either adding
filter: invert(1) hue-rotate(180deg);
to the iframe, or adding the same background color and text color CSS from the rest of the page.Validations
The text was updated successfully, but these errors were encountered: