qt5base-lts/tests/auto
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
..
bic/data Add binary compatibility files for Qt5.13.0 for QtBase 2019-08-14 10:29:38 +03:00
cmake CMake: Add support for auto-importing plugins in CMake 2019-08-12 18:23:58 +02:00
concurrent Introduce QT_NO_LINKED_LIST and mark QtBase (almost) free of it 2019-07-12 14:26:30 +02:00
corelib Itemmodel tests: remove foreach usage 2019-08-19 19:10:06 +02:00
dbus unblacklist passing tests 2019-07-08 11:01:42 +00:00
gui QTextDocument: add css-styling of table cell borders to HTML import/export 2019-08-19 20:59:12 +02:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
opengl QTestLib: Introduce initMain() to run in main before qApp exists 2019-08-13 19:07:05 +02:00
other Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
printsupport Remove the remaining usages of deprecated APIs of qtbase 2019-08-01 06:48:27 +02:00
shared Make tst_qwidget pass on High-DPI screens (Windows) 2019-06-03 10:41:08 +02:00
sql test: migrate QSqlDatabase test to QRegularExpression 2019-07-29 20:01:24 +02:00
testlib QTestLib: Introduce initMain() to run in main before qApp exists 2019-08-13 19:07:05 +02:00
tools Merge remote-tracking branch 'origin/5.13' into dev 2019-08-16 01:00:33 +02:00
widgets Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
xml Convert uses of QTime as a timer to QElapsedTimer 2019-06-14 10:42:33 +02:00
auto.pro winrt: Skip network auto tests for now 2018-06-22 05:02:39 +00:00
network-settings.h test: migrate QNetworkReply test to QRegularExpression 2019-06-10 16:49:19 +02:00