Hand-writing/maintaining a sizes attribute is just not going to happen. This is the way.
Featured
Callout UI with CSS Offset & Border
We look at designing callout UI elements using CSS, incorporating leader lines and text boxes. It details setting up the HTML structure, utilizing CSS properties like offset-path and borders.