2

I have a stylesheet, which is essentially the following:

.mainwindow {
    .popup {
        background: black;
    }
}

@media screen and (max-width: 640px){
    .mainwindow {
       .popup {
            background: red;
        }
    }
}

It works perfectly in Firefox, IE and Edge, but not in Chrome, Brave or Electron.

Yes, I tried to clear the browser cache. It didn't help.

To add to the mystery, in Electron the red background flashes for a split second when starting up, then it turns to black.

jmrk
  • 34,271
  • 7
  • 59
  • 74
Tamás Polgár
  • 2,082
  • 5
  • 21
  • 48

1 Answers1

2

Do you have this in the head

<meta name="viewport" content="width=device-width,initial-scale=1">

Otherwise if you are zoomed in that can stop responsive behaviour

Leviathan
  • 104
  • 1
  • 8
  • 1
    Sorry for the previous comment, it was before you added the meta line. I thought you're asking if the stylesheet was linked in the head. Thank you, this was really missing! – Tamás Polgár Nov 26 '21 at 21:40