style: Add support for the ::marker pseudo element on list items. Alias :-moz-list-bullet/number to that in the parser.

Bug: 205202
Reviewed-by: emilio
This commit is contained in:
Mats Palmgren 2019-03-24 23:13:53 +01:00 committed by Emilio Cobos Álvarez
parent ed74e8acbb
commit ab8c00e41a
5 changed files with 24 additions and 2 deletions

View file

@ -1137,6 +1137,14 @@ impl<'le> TElement for GeckoElement<'le> {
self.before_or_after_pseudo(/* is_before = */ false)
}
fn marker_pseudo_element(&self) -> Option<Self> {
if !self.has_properties() {
return None;
}
unsafe { bindings::Gecko_GetMarkerPseudo(self.0).as_ref().map(GeckoElement) }
}
#[inline]
fn is_html_element(&self) -> bool {
self.namespace_id() == structs::kNameSpaceID_XHTML as i32