title: Export HTML (with CSS styles) as Word document (.doc or .docx)
body: <p>I am trying to export a simple page as a word document but can't seem to find any way to do this. Any method I try simply exports text with font colours but nothing else. What I want is for an export method that uses css styles properly. This is pure html, css and javascript with no back-end language in play.</p>
  
  <p>I tried:</p>
  
  <ul>
  <li>Opening the url in Word 2016</li>
  <li>Exporting with chrome extension</li>
  <li>Used FileSaver.js and wordexport.js to export</li>
  </ul>
  
  <p>In all 3 cases the styles are missing. In particular the fonts and content styles are ignored. Saving as pdf works perfectly. I have css print styles that are never used and even if the same styles are added directly to elements it still doesn't show up in the .doc file.</p>
  
  <p>Is there any reasonable solution?</p>