I found this awesome class that converts CSS style blocks to inline. However, I think it has a problem. For example, if you have the following:
<style type="text/css">
.myclass{
padding:0px;
}
<style>
<p class="myclass" style="padding-top: 40px;">Test</p>
It will convert the above to:
<p class="myclass" style="padding-top: 40px; padding:0px;">Test</p>
But the above is incorrect. It should prepend since the padding-top inline has priority as it is already inline. So it should be:
<p class="myclass" style="padding:0px; padding-top: 40px;">Test</p>
But I am struggling where to make this edit in the class. I thought it would be straightforward and I could submit it to the class creator but I am struggling.
Any ideas?