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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes