if border-radius is not rendering properly, like top left corner is showing properly but rest are square, for once check the flex property, if specific width or height from flex is smaller than element, dom-to-png will render the flex size resulting in crops