Closed Bug 1985558 Opened 3 months ago Closed 3 months ago

changing scrollbar colors for sidebar via userChrome.css no longer works

Categories

(Core :: XUL, defect)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox-esr140 --- unaffected
firefox142 --- unaffected
firefox143 --- wontfix
firefox144 --- wontfix

People

(Reporter: soeren.hentzschel, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Setting the scrollbar color for sidebars via userChrome.css no longer works.

STR:

  1. set toolkit.legacyUserProfileCustomizations.stylesheets to true
  2. apply the following CSS
  3. restart Firefox
  4. open a sidebar
:root {
  scrollbar-color: #33CCFF #f2f2f2 !important;
}

Pushlog: https://hg-edge.mozilla.org/mozilla-central/pushloghtml?fromchange=bba8b54545d17d0a940a38bc4bb8877c4b04e7bb&tochange=7d880ff29269122bc521b3f69a643a3b7158a8eb

Unfortunately, due to bug 1959047 I cannot bisect further.

:emilio, there have been a few changes in the scrollbar area that you have implemented. Maybe you could have a look?

Flags: needinfo?(emilio)

Which OS are you on? I can't repro this (on Linux). I tried scrollbar-color: red red !important for more visibility and it works as expected.

Flags: needinfo?(emilio) → needinfo?(soeren.hentzschel)

It was reported in the Firefox support by a Windows user and I can confirm the issue on macOS.

Flags: needinfo?(soeren.hentzschel)

Ok, will try there.

Flags: needinfo?(emilio)

Ok, sorry for the lag here.

So the key difference is whether you're in the modern sidebar or not (sidebar.revamp). This is because I tweaked the scrollbar rules to also apply to <xul:tree> scrollbars in bug 1982188.

Workaround is to change the CSS selector to have :root, scrollbar { ... } rather than just :root. I don't think I'm going to change the CSS to accommodate this use case tho.

Status: NEW → RESOLVED
Closed: 3 months ago
Flags: needinfo?(emilio)
Regressed by: 1982188
Resolution: --- → INVALID

Workaround is to change the CSS selector to have :root, scrollbar { ... } rather than just :root. I don't think I'm going to change the CSS to accommodate this use case tho.

That's useful information to work with. Anyone who customizes the interface via userChrome.css is used to having to adapt their code every now and then anyway. Thanks for taking a look!

You need to log in before you can comment on or make changes to this bug.