get_parent(); $style = $parent->get_style(); $cbw = $parent->get_containing_block("w"); $margin_left = (float) $style->length_in_pt($style->margin_left, $cbw); $border_edge = $parent->get_position("x") + $margin_left; // This includes the marker indentation $x = $border_edge - $frame->get_margin_width(); // The marker is later vertically aligned with the corresponding line // box and its vertical position is fine-tuned in the renderer $p = $frame->find_block_parent(); $y = $p->get_current_line_box()->y; $frame->set_position($x, $y); } }