Why <strong> and <em> are not working together using Libreoffice "docx:Office Open XML Text" when converting from html to docx?

I have tried to convert from html to docx using Libreoffice using the following command…

soffice --headless --convert-to “docx:Office Open XML Text” ‘test.html’

test.html

<html>
  <head>
  </head>
  <body>
    <strong><em>Apply em then strong</em></strong>
    <em><strong>Apply strong then em</strong></em>
  </body>
</html>

When I am converting this test.html to docx then <strong><em>Apply em then strong</em></strong> is only taking <em> and <em><strong>Apply strong then em</strong></em> is only taking <strong>.

Is there any solution?

It is possibly a limitation of the HTML filter to handle multiple adjacent tags. This example produces the expected output:

<strong>Apply <em>em then</em> strong</strong>
<em>Apply <strong>strong then</strong> em</em>

Please raise a bug about this limitation. Post a link to any raised report back here for others to track. Thanks.

I have raised a bug https://bugs.documentfoundation.org/show_bug.cgi?id=99737
Thanks!