Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world
FirefoxCSS·Firefox CustomsbyGodie

[Answered] Help with 'selected text' background style

Hi, I'm having a problem with 'selected text' style, using userContent.css file with recent Firefox update the next code stop working, seems like Firefox change that behavior:

::selection {
    color: red !important;
    box-shadow: none !important;
    text-shadow: none !important;
    background: blue !important;
}

That code doesn't work in userChrome.css either. Still is possible to change that style? I appreciate any help, thanks.

View original on lemmy.world
5

2 replies

lemmy.world

So, the bug that caused this is bug 2058134. The change that was made there is rather inconvenient for user styling, because now the text painting code simply looks if author styles (e.g the web page author) change the selection color and only then use the css specified colors. I'm pretty sure that means that ::selection does absolutely nothing when used in user{Chrome/Content}.css files because they are user, not author styles.

If you want this changed then you should create a new bug and mark it as being regressed by the above bug.

1

Sad to hear that, each day less user power for Firefox, Thanks for the answer.

1

You reached the end

[Answered] Help with 'selected text' background style | Spyke