Css style not working using insertHtml method

Hello hope this email finds you well. I am writing to bring to your attention an issue I have been facing while exporting Word documents from your software. I have noticed that when I export a document, the formatting of certain elements is not as expected for counters lower alpha

 import com.aspose.words.*;
import com.aspose.words.DocumentBuilder;

public class Test {

    private static final String htmlText = "<html>\n" +
            "<head>\n" +
            "    <title>HTML with CSS</title>\n" +
            "  <style>\n" +
            "\n" +
            ".ql-indent-1{\n" +
            "  margin-left:60px;\n" +
            "}\n" +
            ".ql-editor ol {\n" +
            "  list-style-type: none !important;\n" +
            "}\n" +
            "\n" +
            ".ql-editor ol > li:before {\n" +
            "  counter-increment: sec;\n" +
            "  content:  counter(sec) \". \" !important;\n" +
            "}\n" +
            "\n" +
            ".ql-editor ol:first-of-type {\n" +
            "  counter-reset: sec !important;\n" +
            "}\n" +
            ".ql-editor p+ol{\n" +
            "\n" +
            "  counter-set:sec 0;\n" +
            "}  .ql-editor ol li.ql-indent-1 {\n" +
            "         counter-increment: list-1;\n" +
            "       }.ql-editor ol li.ql-indent-1:before {\n" +
            "  content: counter(list-1, lower-alpha) '. '!important;\n" +
            "  counter-reset:sec 0\n" +
            "}  </style>\n" +
            "</head>\n" +
            "<body>\n" +
            "<div class=\"ql-editor\" >\n" +
            "<ol><li class=\"ql-indent-1\">wwwwwwwww</li><li class=\"ql-indent-1\">wwwwwww</li><li class=\"ql-indent-1\">eeeeeeeeeeeeeeeeeee</li></ol></div>\n" +
            "</body>\n" +
            "</html>";


    public static void main(String[] args) throws Exception {
        Document doc = new Document();
        DocumentBuilder builder = new DocumentBuilder(doc);

        System.out.println(  htmlText + "");
        builder.insertHtml( htmlText + "");

        doc.save("C:\\Users\\Desktop\\TestWord\\hello.docx");
    }
}

version

<dependency>
	<groupId>com.aspose</groupId>
	<artifactId>aspose-words</artifactId>
	<version>18.11</version>
	<classifier>jdk16</classifier>
</dependency>

<dependency>
	<groupId>com.aspose</groupId>
	<artifactId>aspose-cells</artifactId>
	<version>18.11</version>
</dependency>
<dependency>
	<groupId>org.apache.poi</groupId>
	<artifactId>poi-ooxml</artifactId>
	<version>3.13</version>
</dependency>

@rexsmai You are using quite old version of Aspose.Words. The problem is not reproducible using the latest 24.1 version of Aspose.Words for Java. Here is the output document produced by your code on my side:
hello.docx (8.2 KB)