Seems like you are jumping through hoops because you are using SVG instead plain `<div>` nodes.   dojox/mobile/ProgressIndicator.   What's the justification to use SVG?

Also, the high-contrast comment seems suspicious.   We shouldn't be worrying about things like color in high-contrast mode.