what's wrong
Child elements should not duplicate explicit styles.
There are several instances where inherited styles are explicitly stated. This baloons file size and makes it hard to quickly parse the inheritance chain.
The parent <p> tag's styling and the .f2h-text-0 styling:
The elements:
how to fix
Output only unique styles to each element. This could be done by finding the difference between an Object of the CSS properties. You would check child against parent, and we could possibly make this recursive from child to nth-parent.
This should happen in ConvertTextFrames.ts, where we do a check currently to see if the styles for the root is totally equal to the current text element
what's wrong Child elements should not duplicate explicit styles.
There are several instances where inherited styles are explicitly stated. This baloons file size and makes it hard to quickly parse the inheritance chain.
The parent
<p>
tag's styling and the.f2h-text-0
styling:The elements:
how to fix Output only unique styles to each element. This could be done by finding the difference between an Object of the CSS properties. You would check child against parent, and we could possibly make this recursive from child to nth-parent.