<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - HTML Filter does not resolve CSS for divs"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122613">122613</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>HTML Filter does not resolve CSS for divs
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.1.3.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jens.troeger@light-speed.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

See also this thread and the dev mailing list:
<a href="http://document-foundation-mail-archive.969070.n3.nabble.com/HTML-import-filter-very-too-basic-td4255790.html">http://document-foundation-mail-archive.969070.n3.nabble.com/HTML-import-filter-very-too-basic-td4255790.html</a>

I think that the attached image says it all (LibreOffice 6.1.3.2). It looks
like the HTML import is really very simple, and does not apply CSS to the
content of div or span elements. In the example/test file there are a few
paragraphs nested inside of a div and inherit the color of the div while
overriding the font. Also, the initial paragraph starts with a span to
italicize text.

HTML & CSS are really quite simple, but I didn’t attach the font file because
I’m not sure regarding copyright. Reproduce as follows:

 – Create test folder;
 – Copy attached HTML & CSS files;
 — Copy three random font files, ideally ones that are _not_ in the system
path;
 — Modify the CSS to use the local fonts;
 — `cd` into the folder and open LO.

There’s one more aspect for which I ought to file a separate bug: LO doesn’t
seem to load a font from a local path relative to the CSS file? To reproduce:

 – As above, but `cd` someplace else;
 – Open HTML in LO by passing a path to the HTML file.

Cheers,
Jens</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>