AFAIK Sigil does nothing but import images
Look at the code(view) for clues.
Tidy (if enabled) will
fix malformed code with inline styles.
If you see much (inline) other than class="xyzzy", your original XHTML decelerations were substandard and got worked around