1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

LibWeb: Don't render list item markers for "list-style-type: none"

This commit is contained in:
Andreas Kling 2020-05-30 12:04:15 +02:00
parent e1e9fb8290
commit 0d5be35c1f
2 changed files with 13 additions and 0 deletions

View file

@ -47,6 +47,10 @@ void LayoutListItem::layout(LayoutMode layout_mode)
LayoutBlock::layout(layout_mode);
if (style().string_or_fallback(CSS::PropertyID::ListStyleType, "disc") == "none") {
return;
}
if (!m_marker) {
m_marker = adopt(*new LayoutListItemMarker);
if (first_child())