Переглянути джерело

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;
 }