Cocos RichElementText mis aligned inside RichText if enableRetina true on mobile browser

I am using Cocos2d-JS 3.13.1, on game start I am calling cc.view.enableRetina(true) . But, due to this, ccui.RichElementText inside ccui.RichText is mis-aligned.

misaligned screenshot:

If I set cc.view.enableRetina(false) , cocos renders blurred fonts.

Blurred fonts screenshot:

This is happening only if I compile cocos for web and not reproducible if compiled for Android.

Any solution for this?