Closed Bug 1469741 Opened 6 years ago Closed 6 years ago

Maybe implement scrollbar color and width properties when native theme is disabled

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: xidorn, Assigned: xidorn)

References

Details

Attachments

(2 files)

There is an effort to discard native theme implementation and rely on CSS to define how widgets should be rendered (see bug 1381938 for example).

Currently scrollbar color properties are implemented from native theme implementations directly, which would stop working if native theme is disabled.

If we are going to define scrollbar appearance via CSS, we would need to have a new mechanism to put value from content CSS to CSS value in internal CSS. Alternatively, if we can make progress on bug 645563 to make scrollbar a single element, this kind of mechanism may not be necessary as we would likely have all the rendering code in C++ with that.

It is not a high priority at the moment, though, as it seems we are still far from disabling native theme by default.
Blocks: 1464723
I almost have a working prototype of this.

But I would hope we land bug 1475033 first so that I can also have scrollbar-width work directly.
Assignee: nobody → xidorn+moz
Priority: P4 → P3
Depends on: 1475033
Summary: Maybe implement scrollbar color properties when native theme is disabled → Maybe implement scrollbar color and width properties when native theme is disabled
Comment on attachment 9001839 [details]
Bug 1469741 part 1 - Apply scrollbar colors to background of some scrollbar parts when theme doesn't support them. r=mattwoodrow

Matt Woodrow (:mattwoodrow) has approved the revision.
Attachment #9001839 - Flags: review+
Comment on attachment 9001840 [details]
Bug 1469741 part 2 - Ensure scrollbar has a width even when it's not supported by the theme. r=dholbert

Daniel Holbert [:dholbert] has approved the revision.
Attachment #9001840 - Flags: review+
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6fc06d9d7fc0
part 1 - Apply scrollbar colors to background of some scrollbar parts when theme doesn't support them. r=mattwoodrow
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bdbea15cf0ba
part 2 - Ensure scrollbar has a width even when it's not supported by the theme. r=dholbert
https://hg.mozilla.org/mozilla-central/rev/6fc06d9d7fc0
https://hg.mozilla.org/mozilla-central/rev/bdbea15cf0ba
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Component: Themes → Layout
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: