Details
Description
CSS filese that are located in a QRC file are ignored.
See tst_QWebEnginePage::setHtmlWithStylesheetResource.
const char* htmlData = "<html>" "<head>" "<link rel='stylesheet' href='qrc:/style.css' type='text/css' />" "</head>" "<body>" "<p id='idP'>some text</p>" "</body>" "</html>";
The (adjusted) test passes with inline CSS:
const char* htmlData = "<html>" "<head><style>" "#idP {color: red !important}" "</style></head>" "<body>" "<p id='idP'>some text</p>" "</body>" "</html>";
Attachments
For Gerrit Dashboard: QTBUG-51572 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
179833,4 | Unskip tst_QWebEnginePage::setHtmlWithStylesheetResource | 5.8 | qt/qtwebengine | Status: MERGED | +2 | 0 |