aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2023-12-11 02:00:31 +0100
committerrodarima <rodarima@gmail.com>2023-12-11 02:14:00 +0100
commit3e00bcbe563418be7322795bf72076dfe313817f (patch)
tree678643c236e3136c2db1eec21e33bda5a8d641bf /test
parentd2d000c4d0bd303a32edcd998804fcc5a820f786 (diff)
Add thead, tbody and tfoot HTML test
The colors are now properly render when matching the thead, tbody or tfoot selectors.
Diffstat (limited to 'test')
-rw-r--r--test/table-thead-tfoot.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/table-thead-tfoot.html b/test/table-thead-tfoot.html
new file mode 100644
index 00000000..66be2710
--- /dev/null
+++ b/test/table-thead-tfoot.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test thead, tbody and tfoot</title>
+ <style>
+ thead {color: green;}
+ tbody {color: blue;}
+ tfoot {color: red;}
+
+ table, th, td {
+ border: 1px solid black;
+ }
+ </style>
+ </head>
+ <body>
+ <table>
+ <thead>
+ <tr>
+ <th>Month</th>
+ <th>Savings</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>January</td>
+ <td>$100</td>
+ </tr>
+ <tr>
+ <td>February</td>
+ <td>$80</td>
+ </tr>
+ </tbody>
+ <tfoot>
+ <tr>
+ <td>Sum</td>
+ <td>$180</td>
+ </tr>
+ </tfoot>
+ </table>
+ </body>
+</html>