box width is determined by width attribute or parent bow width as a fallback.