Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.6, 5.10.1, 5.11.0, 5.11.1
-
None
-
windows,linux , mac
-
-
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.
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;
}