Closed Bug 1199394 Opened 9 years ago Closed 9 years ago

[b2g] Scrollbar track in Shadow DOM is white

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: wilsonpage, Assigned: wchen)

Details

Attachments

(2 files)

ACTUAL: Scrollbar tracks in shadow-dom are white
EXPECTED: Should appear same as normal scrollbar tracks (transparent)
The issue here is that a couple style selectors for b2g scrollbars looks like this:

html xul|scrollbar { ... }

This doesn't work for scrollbars in the shadow DOM because it's in a disconnected subtree from the document tree.

viven: Is there a reason these selectors require the html ancestor? The other selectors in the file don't seem to have this requirement and it should be faster without it.
Assignee: nobody → wchen
Attachment #8656292 - Flags: review?(21)
Comment on attachment 8656292 [details] [diff] [review]
Update b2g scrollbar style to apply on all scrollbars.

Review of attachment 8656292 [details] [diff] [review]:
-----------------------------------------------------------------

IIRC the reason why the scrollbars are prefixed with |html| is because years ago I made those CSS rules for Fennec (the xul version).
In there the root document was a XUL document with custom scrollbars and it was not supposed to be affected by those rules (which were inserted into the document by the platform).

Since b2g does not have any XUL document it seems safe to me to remove the |html| constraint.
Attachment #8656292 - Flags: review?(21) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/5899ac3e7447
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: