hi, in Firefox v.136 the sound button seems totally reworked and I can't get a right way to style that button, or maybe my knowledge is insignificant. I tried this way but works only for English language, I guess I should add an entry for each language ans that seems inefficient:
button[aria-label="Mute tab"] .button-background {
/* my code */
}
In the firefox code they use ::part(button) and that don't works in userChrome.css:
.tab-audio-button {
#tabbrowser-tabs:is([orient="vertical"][expanded], [orient="horizontal"]) &:not([pinned]):not([crashed]) {
&[soundplaying]::part(button) {
}
}
}
There is a way to solve this or it is impossible?
2 Comments
MrOtherGuy@lemmy.world · 2 pts · 1y
CSS variables go through from the shadow host to the elements inside. So you can do stuff like this:
Godie@lemmy.world · 1 pts · 1y
Thank you so much, so now all the rules needs to be variables, I don't understand very well but it seems to work: