浏览代码

LibWeb: Add default UA style for some table-related elements

Andreas Kling 5 年之前
父节点
当前提交
3d09bac888
共有 1 个文件被更改,包括 27 次插入1 次删除
  1. 27 1
      Libraries/LibWeb/CSS/Default.css

+ 27 - 1
Libraries/LibWeb/CSS/Default.css

@@ -127,14 +127,40 @@ table {
     display: table;
 }
 
+thead {
+    display: table-header-group;
+    vertical-align: middle;
+    border-color: inherit;
+}
+
+tbody {
+    display: table-row-group;
+    vertical-align: middle;
+    border-color: inherit;
+}
+
+tfoot {
+    display: table-footer-group;
+    vertical-align: middle;
+    border-color: inherit;
+}
+
 tr {
     display: table-row;
 }
 
-td {
+td, th {
     display: table-cell;
 }
 
+col {
+    display: table-column;
+}
+
+colgroup {
+    display: table-column-group;
+}
+
 basefont {
     display: block;
 }