layout: Add initial support for the ::marker pseudo-element (#36317)

This change adds support for the `::marker` pseudo-element and ensure
that
markers are cached into the box tree. This is only initial support,
there are a few
things missing such as animations, transitions, and support the
`content` CSS
property.

Testing: There are WPT tests for this change.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-04-07 19:49:05 +02:00 committed by GitHub
parent a5c547259f
commit 2b63e60e8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 282 additions and 276 deletions

View file

@ -393,7 +393,7 @@ where
is_list_item: false,
},
NonReplacedContents::OfPseudoElement(contents).into(),
BoxSlot::dummy(),
info.node.pseudo_element_box_slot(PseudoElement::Marker),
);
}
@ -405,7 +405,7 @@ where
) {
self.block_level_boxes.push(BlockLevelJob {
info: info.clone(),
box_slot: BoxSlot::dummy(),
box_slot: info.node.pseudo_element_box_slot(PseudoElement::Marker),
kind: BlockLevelCreator::OutsideMarker {
contents,
list_item_style,