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

letter-spacing breaking text layout in Qt WebKit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.3.1
    • WebKit
    • None
    • Linux, 64bit, Qt compiled from git (5.3 branch) and also distro Qt 5.3.1 Not tested on other OSes, but is likely to be present there as well.

    Description

      The CSS letter-spacing is breaking text layout, the calculated text width and the rendered text width are different, similar to what happened in Bug #40912 because of the soft-hyphens.

      Run the attached example, you will see that the underline on the <a> tag does not match the text and some text overflows the boundaries of the <p> tag when letter spacing is applied. See attached screenshot for how it looks on my system.

      The HTML used in this example renders fine in chromium and firefox.

      Attachments

        1. letter_spacing.png
          letter_spacing.png
          39 kB
        2. test.zip
          1 kB

        Issue Links

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

          Activity

            People

              annulen Konstantin Tokarev
              kovid Kovid Goyal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes