Web-bugs: microsoftnews.msn.com - see bug description

Created on 20 Apr 2020  路  7Comments  路  Source: webcompat/web-bugs




URL: https://microsoftnews.msn.com/?ocid=msedgdhp&locale=pt-br

Browser / Version: Firefox 68.0
Operating System: Windows 10
Tested Another Browser: Yes Edge

Problem type: Something else
Description: White Theme on Firefox but Dark in Microsoft Edge
Steps to Reproduce:
The site is black in Microsoft Edge and is better black.
But in Firefox the site is White. Too white.

I have the scenario if necessary.

Thanks!

View the screenshotScreenshot

View the screenshotScreenshot


Browser Configuration

  • None

Submitted in the name of @wellington1993

_From webcompat.com with 鉂わ笍_

browser-firefox engine-gecko priority-critical severity-minor

All 7 comments

Firefox left, Edge right:

Screen Shot 2020-04-20 at 4 11 52 PM

Possibly some hard-coded UA sniffing. This is an inline style for some random header element:

.backgroundImage-DS-EntryPoint1-1 {
  background: #FFFFFF; //light
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 500;
}

In edge:

.backgroundImage-DS-EntryPoint1-1 {
    background: #242424; //dark
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 500;
}
<script type="text/javascript" nonce="">
  if(matchMedia("(prefers-color-scheme:dark)").matches){const s=document.createElement("style");document.head.appendChild(s);s.type="text/css";s.appendChild(document.createTextNode("body{background:#242424}"));}
</script>

So why is that failing?

What's odd is this works as expected in Release, and Nightly, but is failing for me in DevEdition. Possibly a profile issue?

So yeah, this was my own issue: ui.systemUsesDarkTheme was set (because I happen to hate dark themes.

@wellington1993, this should be working as long as you have your OS set to dark mode. If it doesn't work, check in a new profile, and if it's still busted after that -- a bugzilla bug would be good.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue at https://webcompat.com/issues/new if you are experiencing a similar problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oksas picture oksas  路  5Comments

webcompat-bot picture webcompat-bot  路  4Comments

lolrepeatlol picture lolrepeatlol  路  4Comments

webcompat-bot picture webcompat-bot  路  4Comments

halwane050 picture halwane050  路  5Comments