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

Subsequent bullet points incorrectly colored by hyperlink

    XMLWordPrintable

Details

    • 41a1ff4e3 (dev)

    Description

      When styling a-Tags using CSS, subsequent bullet points are incorrectly colorized like the links if there is no whitespace in the HTML:

      import QtQuick 2.8
      
      Text {
              textFormat: Text.RichText
              text: "
      <style>
      a { color: #f0f; }
      </style>
      <ul><li><a href='#'>Link 1</a></li><li><a href='#'>Link 2</a></li><li><a href='#'>Link 3</a></li></ul>"
          }
      

      Note how in the screenshot the first bullet point is black whereas all following are colored like the links.
      Even if I colorize the li tags differently

      li {color: #0f0; }

      and then add some text before the link, the bullet point remains pink.

      If I add white space before an <li> tag, that bullet points remains black (body color). If I add a white space after the closing </a> tag, the bullet point inherits the li color and turns green.

      Attachments

        Issue Links

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

          Activity

            People

              sami.shalayel Sami Shalayel
              broulik Kai Uwe Broulik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes