qt5base-lts/tests/auto/gui
Nils Jeisecke d8a9bec35f QTextDocument: add css-styling of table cell borders to HTML import/export
Supported style attributes:

<table>
style: supports "border-collapse: collapse" and "border-color".
border: width of the outer border
bordercolor: basic color for all borders

<tr>
style: not supported

<td>/</th>
style: supports the "border", "border-[top|left|bottom|right]]"
       shorthand styles and the "border-width", "border-color"
       and "border-style" (and the top/left/bottom/right variants)
       attributes

<table border=1 style="border-collapse: collapse"> will render
a simple 1px table grid.

Notes:

The QTextDocument table model is much simpler than the HTML table model.
It basically only has <table> and <td> support. So the HTML parser is
forced to map markup and styling to the QTextDocument model which
is not without loss.

In other words: While QTextDocument -> HTML -> QTextDocument should
preserve the QTextDocument structure, HTML -> QTextDocument -> HTML
does not preserve the HTML DOM at all.

So for now the HTML importer and writer only support border styles on
the <td> and <th> nodes. In future updates, the HTML parser might be
enhanced to map <tr> and <table> CSS styles to the cells.

Change-Id: If9e7312fa6cbf270cf8f7b3c72ba1fa094107517
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2019-08-19 20:59:12 +02:00
..
image Fix tst_QImageReader::saveColorSpace 2019-08-13 17:26:15 +02:00
itemmodels Remove usages of deprecated APIs of corelib 2019-07-05 11:25:46 +02:00
kernel Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
math3d Remove usages of deprecated APIs of qtbase/gui 2019-07-13 10:43:15 +02:00
painting Merge remote-tracking branch 'origin/5.13' into dev 2019-08-13 09:46:17 +02:00
qopengl unblacklist passing tests 2019-07-08 11:01:42 +00:00
qopenglconfig Deprecate conversion functions between QList and QSet 2019-05-07 14:15:44 +00:00
qvulkan Merge remote-tracking branch 'origin/5.10' into dev 2017-10-17 10:34:24 +02:00
rhi Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00
text QTextDocument: add css-styling of table cell borders to HTML import/export 2019-08-19 20:59:12 +02:00
util Remove usages of deprecated APIs of qtbase/gui 2019-07-13 10:43:15 +02:00
gui.pro Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00