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

Css: Unitless "line-height" value is used incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.7, 5.8, 5.9
    • GUI: Text handling
    • None

    Description

      According to the CSS specs for "line-height" by the W3C, a unit-less line-height value (number without unit) should be used as follows:

      The used value of the property is this number multiplied by the element's font size. Negative values are illegal.

      Browsers do this correctly, but Qt does not. Qt seems to interpret the line-height value as pixel value.

      See attached screenshot and example.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              portale Alessandro Portale
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes