Using the latest build 23.10, having a colour defined based on a custom CSS property causes the converter to crash with the error:
System.InvalidOperationException: ‘Operation is not valid due to the current state of the object.’
private static void ColorCustomProperty()
{
const string html = "<html><body style='background-color: rgb(var(--color))' /></html>";
using (var document = new Aspose.Html.HTMLDocument(html, "."))
Aspose.Html.Converters.Converter.ConvertHTML(document, new PdfSaveOptions(), "out.pdf");
}