mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
style: Don't use attribute selectors for determining if a select is a drop down or a list box.
Instead add a pseudo-class that does the expected size="" attribute parsing. Removing the Gtk-specific rule setting the text color since it doesn't seem to have any effect currently. Differential Revision: https://phabricator.services.mozilla.com/D83448
This commit is contained in:
parent
a2b016157e
commit
5752e4a3a2
4 changed files with 19 additions and 0 deletions
|
@ -2116,6 +2116,9 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
bindings::Gecko_IsTableBorderNonzero(self.0)
|
||||
},
|
||||
NonTSPseudoClass::MozBrowserFrame => unsafe { bindings::Gecko_IsBrowserFrame(self.0) },
|
||||
NonTSPseudoClass::MozSelectListBox => unsafe {
|
||||
bindings::Gecko_IsSelectListBox(self.0)
|
||||
},
|
||||
NonTSPseudoClass::MozIsHTML => self.is_html_element_in_html_document(),
|
||||
NonTSPseudoClass::MozLWTheme => self.document_theme() != DocumentTheme::Doc_Theme_None,
|
||||
NonTSPseudoClass::MozLWThemeBrightText => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue