The floated element is contained in the 2nd li and thus should float along side of the content of the 2nd item

Buggy case where the floated element after the rest of the list content

Working case where the floated element comes before the rest of the list content

Buggy case where the floated element is in the middle of the list content