Native widget styling should respect pseudo-class locks

NEW
Unassigned

Status

()

Core
DOM
6 years ago
6 years ago

People

(Reporter: harth, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
With bug 708874, you can lock :hover, etc. styles on an element. The native styles for widgets like buttons though aren't applied right now with these locks, so we should do that.
Do you have any example of native widgets that do not support the lock? Seems like stuff like :hover are using |eventState.HasState(NS_EVENT_STATE_HOVER)| at least for the GTK2 widget backend. Some states depending on the attribute might be checked with the attribute instead of the pseudo-class though.
(Reporter)

Comment 2

6 years ago
(In reply to Mounir Lamouri (:volkmar) (:mounir) from comment #1)
> Do you have any example of native widgets that do not support the lock?
> Seems like stuff like :hover are using
> |eventState.HasState(NS_EVENT_STATE_HOVER)| at least for the GTK2 widget
> backend. Some states depending on the attribute might be checked with the
> attribute instead of the pseudo-class though.

Any native widget with pseudo-class styles isn't respecting the locks right now. But as bz mentioned in bug 708874 it's just a matter of nsNativeTheme::GetContentState checking the locks.
You need to log in before you can comment on or make changes to this bug.