Multiple "style=font size" attributes for the same elements
From the title page of Bakker, some elements have multiple font sizes declared on them:
<div class="docx-body">
<p style="font-size: 28pt; font-size: 48pt">
<span style="font-size: 28pt; font-size: 48pt">Migrating into Financial Markets</span>
</p>
<p style="font-size: 24pt">
<span style="font-size: 24pt">How Remittances </span>
</p>
<p style="font-size: 24pt">
<span style="font-size: 24pt">Became a Development Tool</span>
</p>
<p style="font-size: 18pt; font-size: 28pt">
<span style="font-size: 18pt; font-size: 28pt">Matt Bakker</span>
</p>
</div>
Am I correct that when the same property is declared multiple times, the last declaration wins? Is it also correct that one of the refine steps orders the font sizes declarations from the smallest to the largest?
The original doc has a 48pt title, 24pt subtitle, and 18pt author name. The current extraction makes the title 48pt, subheading 24pt, and the author's name 28pt.
So, the question is how do we get from multiple font size styles specified on a tag to only one, making sure we're keeping the font size that was actually displaying in the word doc?