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

!important CSS attribute not supported by QtSvg

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.12.4
    • SVG Support
    • None

    Description

      if a SVG image has a CSS stylesheet, and an item matches to a CSS class which defines a fill color as !important, a "fill:.." in the inline style attribute of the element should then be ignored, but this doesn't work in QtSvg.

      Attached a svg that has a single rectangle which has fill defined as #00FF00 and !important in the css, and has style="fill:#FF0000" inline in the rectangle element.

      QtSvg shows a red rectangle, while chromium shows a green rectangle (which is correct)

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            notmart Marco Martin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes