CSS custom properties not supported

Hello,

we use Aspose.Words to convert HTML files to PDF and DOCX.
The HTML files, we are converting use custom CSS properties (https://developer.mozilla.org/en-US/docs/Web/CSS/--*) inserted by a third-party, but these custom properties (or “CSS variables”) are not properly interpreted by the Aspose conversion.

The following example HTML code can be used to reproduce the problem:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style>
        :root {
            --color: red;
        }
        </style>
    </head>
    <body>
        <p style="color: var(--color);">this should be red</p>
    </body>
</html>

The paragraph this should be red should be displayed in red, due to the color being defined as red in the variable --color. But in the converted PDF file, the text is black.

@orgavision
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27640

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

You should note, that Aspose.Words is designed to work with MS Word documents. HTML documents and MS Word documents object models are quite different and it is not always possible to provide 100% fidelity after conversion one model to another. In most cases Aspose.Words mimics MS Word behavior when work with HTML. By the way, in this case MS Word also shows text as black.