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

In a QTextBrowser sometimes css styles applied in a tag will affect an EARLIER declared tag!

    XMLWordPrintable

Details

    Description

      Set the following html text in a QTextBrowser

       
      <ul>
      <li><span style='font-size:5px'>really small text</span> first item</li>
      <li>&nbsp;<span style='font-size:5px'>really small text</span> second item</li>
      </ul>
      

      The two bulleted items should show identically, but they don't.
      You will see that when viewed the bullet in the first item has had the style "font-size:5px" applied to it even though that style was declared in a later tag!. In the second list item by putting a character between "<li>" and "<span" you avoid the bug.

      I have encountered this bug quite a few times when displaying html pages in a qtextbrowser when tags are right beside each other not only with <li> tags, but it's the only example I have at the moment.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            berryblue031 Leah Vilhan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes