Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.0, 6.2.0
-
None
-
899e3d29a70c71f4cbc0c0052b91f7f37f3aabbb (qt/qtdeclarative/dev)
Description
In a Text object with RichText format, an HTML table element can be drawn with borders by specifying a nonzero border thickness with a "border" attribute or a "border-width" style. However, when this is done, the coordinates of the bottom and right borders to the entire table are too large by the thickness of the border. Although the "border-collapse" style isn't supported, one can almost accomplish the same thing by setting the table "cellspacing" attribute to the negative of the border thickness, but because of this bug, the bottom and right border of the entire table winds up twice as thick. There is therefore no way to get a perfectly bordered table. This should be an easy one to fix.
In the attached example (which also shows two other reported bugs), you can see in the first table that the gap between the cell borders and the bottom and right table borders is one pixel larger than the other gaps, because the bottom and right borders are down or to the right too far by one pixel, the specified border thickness. In the second table, the cellspacing is set to the negative of the border thickness to collapse the borders together, but the bottom and right borders aren't properly collapsed because the bottom and right table borders are down or to the right too far by five pixels, the specified border thickness, resulting in double-thick lines.
Attachments
Issue Links
- is duplicated by
-
QTBUG-80850 html table is rendered incorrectly in QML
- Closed
- relates to
-
QTBUG-78318 QTextDocument: table border scaling broken for print
- Closed
-
QTBUG-36152 Add support for styling the different borders in a table in CSS
- Closed
-
QTBUG-77213 RichText table border uses obsolete syntax
- Open
- resulted from
-
QTBUG-36152 Add support for styling the different borders in a table in CSS
- Closed
For Gerrit Dashboard: QTBUG-74335 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
376627,3 | Tables in RichText: make outer frame symmetric | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |