The new rendering engine for comment deletes irrelevant CSS rules (and deletes invalid attributes)
Page reference all CSS supported for the "new" comments
https://doc.qt.io/qt-5/richtext-html-subset.html
Noted that somes rules will be moved into attributes if possible (example:
style="text-align: justify;" move to
align="justify")