If you make coffee mug with a cap, lid or some other enclosure, and it cannot keep the coffee inside at any time the mug isn’t standing up right...you have failed. Your coffee mug is a cup with a porous vestigial lid.