mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
ed74e8acbb
commit
ab8c00e41a
5 changed files with 24 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue