Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.9.1, 5.10.0 Beta 3
-
None
-
Qt 5.9.1 on KDE neon 5.10
-
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
- duplicates
-
QTBUG-123855 Inconsistent RichText Formatting of "<ol>" and "<ul>" in Text QML type
- Closed
- relates to
-
QTBUG-73859 HTML font attributes override styling, rather than add to it
- Reported
-
QTBUG-2188 QTextDocument: Bullets in bullet lists are not affected by text color
- Closed