Text DOM-rendering fix for transform handling