Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95929

HTML and CSS rendering issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12
    • GUI: Text handling
    • None
    • Linux/X11

    Description

      In QGis, which is using QT 5.12.8, I'm having an issue with rendering HTML with inline CSS.

      This is a HTML snippet showing the problem:

       

      <div style="font-size: 10px;">
          <table>
              <tbody>
                  <tr>
                      <td>a</td>
                      <td>1</td>
                  </tr>
                  <tr>
                      <td>b</td>
                      <td>2</td>
                  </tr>
              </tbody>
          </table>
      </div>

      I would expect the table content is using "font-size: 10px", but it isn't. When I apply a style to the table as well, then I get the result.

       

      <div style="font-size: 10px;">
          <table style="font-size: inherit;">
              <tbody>
                  <tr>
                      <td>a</td>
                      <td>1</td>
                  </tr>
                  <tr>
                      <td>b</td>
                      <td>2</td>
                  </tr>
              </tbody>
          </table>
      </div>

      I'm not a QT user, so I assume the WebEngine is doing the rendering. 

      The QGis project says it is a upstream problem, I hope I found the right place here. If not or if more information are needed, I'll doing my best to provide them.

       

      Ticket in QGis issue tracker: https://github.com/qgis/QGIS/issues/44733

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            gislars lars lingner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes