How can I set CSS rules for windowed mode?
@media all and (display-mode: fullscreen) {
.testfullscreen {
display: none; /*Works*/
}
}
@media all and not (display-mode: fullscreen) {
.testwindowed {
display: none; /*Not working*/
}
}
You were very close on this, you just needed to move the
notto the begging.According to MDN's docs:
Inverting a query's meaning