On canvas when a contain is set without according width/height value the text is visible. On webgl the text is not visible.