variant in an inline link

Hi

Here is an inlink code I copy from the body of an content item:

<a href="http://localhost:9992/Rhythmyx/assembler/render?sys_revision=15&sys_authtype=0&sys_context=0&sys_contentid=25246&sys_variantid=320" inlinetype="rxhyperlink" rxinlineslot="103" sys_contentid="25246" sys_dependentid="25246" sys_dependentvariantid="678" sys_folderid="" sys_relationshipid="2027752" sys_siteid="" sys_variantid="678" title="">test</a>

There is a sys_varaintid inside href and also a sys_dependentvariantid attribute in the link.

Could you please let me know what is the difference between these two variant ids? When coming to previewing or publishing, which variant id will be applied to the dependent?

Thank you.