[Nightly] Does -moz-bool-pref() no longer work?

I just updated Firefox Nightly (2023-10-19) and it seems that about:config values are no longer detected by -moz-bool-pref().

Does anyone else have this issue. If so, is this just unintended behavior or is this permanent?

3 points · 5 comments · view on lemmy.world

5 Comments

MrOtherGuy@lemmy.world · 2 pts · 2y (5 replies)

No, it does not work anymore - see bug 1859538

Instead the same can now be done with media query which is simply amazing. Format would be like this:

@media (-moz-bool-pref: "userChrome.some.testpref.enabled"){
  #nav-bar{background: #f00 !important;}
}
zapsnh@lemmy.world · 1 pts · 2y

Apparently you no longer have to restart or refresh the CSS in order to see your config changes.

Imgur

(how do i embed video?)

Godie@lemmy.world · 1 pts · 2y (3 replies)

@MrOtherGuy@lemmy.world could you help me with the syntax with not, or when I want use "or" or "and", for example this not work: @media ( not -moz-bool-pref:"firefoxgx.tab-shapes") {...}

MrOtherGuy@lemmy.world · 1 pts · 2y (2 replies)

The not keyword should be outside the parentheses. So like @media not (-moz-bool-pref: "firefoxgx.tab-shapes"){...}

Godie@lemmy.world · 1 pts · 2y

thanks. :)

Godie@lemmy.world · 1 pts · 2y
[ removed ]