I am using Aspose.Cells 16.11.0 to convert HTML to XLSX. Some CSS rules are ignored by Aspose.Cells. It seems to depend on the selector used. Example:
<html>
<head>
<title>Test</title>
<style type=“text/css”>
tr th {
text-align: left;
font-weight: normal;
color: red;
}<span style="color:maroon;">tr</span> <span style="color:maroon;">td</span> { <span style="color:red;">text-align</span>: <span style="color:blue;">center</span>; <span style="color:red;">font-weight</span>: <span style="color:blue;">bold</span>; <span style="color:red;">color</span>: <span style="color:blue;">green</span>; } <span style="color:blue;"></</span><span style="color:maroon;">style</span><span style="color:blue;">></span>
</head>
<body>
<table>
<tr><th>Should be red, left-aligned, not bold.</th></tr>
<tr><td>Should be green, centered, bold.</td></tr>
</table>
</body>
</html>
When I let Excel import the HTML, the CSS rules take effect - OK.
When I let Aspose convert HTML to XLSX, the CSS rules do not take effect - NOT OK.
When I remove the parent ‘tr’ from the CSS selectors, the CSS rules do take effect - OK.