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

Qt SVG style element attribute type no default value "text/css"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.2, 5.13.1, 5.14.0 Alpha
    • 5.9.6, 5.10.1, 5.11.0, 5.11.1
    • SVG Support
    • None
    • windows,linux , mac
    • Android, Integrity, iOS/tvOS/watchOS, Linux/Wayland, Linux/X11, Linux/Other display system, macOS, Other, QNX, VxWorks, WebAssembly, Windows, WinRT
    • dcc4e2c4d96a6ad1447b9fb679afca21bb381218 (qt/qtsvg/5.12)

    Description

       If a 'type' is not provided, the value of 'contentStyleType' on the 'svg' element shall be used, which in turn defaults to "text/css" [RFC2046. If a 'style' element falls outside of the outermost svg element and the 'type' is not provided, the 'type' must default to "text/css" [RFC2046

       

      SVG style element

       

      in source  Src\qtsvg\src\svg\qsvghandler.cpp 
      static bool parseStyleNode(QSvgNode *parent,
      const QXmlStreamAttributes &attributes,
      QSvgHandler *handler)
      {
      Q_UNUSED(parent);
      #ifdef QT_NO_CSSPARSER
      Q_UNUSED(attributes)
      Q_UNUSED(handler)
      #else
      const QStringRef type = attributes.value(QLatin1String("type"));
      if (type.compare(QLatin1String("text/css"), Qt::CaseInsensitive) ==0)
      handler->setInStyle(true);
      #endif

      returntrue;
      }
       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mllw 令龙 孟
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes