I found this awesome class that converts CSS style blocks to inline. However, I think this is 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 converts the above value to:
<p class="myclass" style="padding-top: 40px; padding:0px;">Test</p>
But the above is incorrect. It needs to be added since the padding-top has priority because it is already inline. Therefore, it should be:
<p class="myclass" style="padding:0px; padding-top: 40px;">Test</p>
But I'm struggling to do this editing in class. I thought it would be easy, and I can introduce it to the creator of the class, but I'm afraid.
Any ideas?
source share