about summary refs log tree commit diff stats
path: root/src/css/csstree.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/css/csstree.nim')
-rw-r--r--src/css/csstree.nim7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/css/csstree.nim b/src/css/csstree.nim
index 6c2b78de..fea6dc43 100644
--- a/src/css/csstree.nim
+++ b/src/css/csstree.nim
@@ -259,10 +259,6 @@ proc getParent(frame: var TreeFrame; computed: CSSValues; display: CSSDisplay):
   of DisplayInnerTable:
     if frame.children.len > 0 and display != DisplayTableCaption:
       return frame.children[0].anonChildren
-  of DisplayListItem:
-    if frame.computed{"list-style-position"} == ListStylePositionOutside and
-        frame.children.len >= 2:
-      return frame.children[1].anonChildren
   of DisplayTableCell:
     if frame.anonComputed == nil:
       frame.anonComputed = frame.inheritFor(DisplayFlowRoot)
@@ -292,9 +288,8 @@ proc addListItem(frame: var TreeFrame; node: sink StyledNode) =
   of ListStylePositionOutside:
     # Generate separate boxes for the content and marker.
     let computed = node.computed.inheritProperties()
-    computed{"display"} = DisplayBlock
+    computed{"display"} = DisplayMarker
     node.anonChildren.add(initStyledAnon(node.element, computed, @[markerText]))
-    node.anonChildren.add(initStyledAnon(node.element, computed))
   of ListStylePositionInside:
     node.anonChildren.add(markerText)
   frame.getParent(node.computed, node.computed{"display"}).add(node)