From 3d09bac88832001f87a435391c893fdb2e6a148f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 May 2020 12:43:29 +0200 Subject: [PATCH] LibWeb: Add default UA style for some table-related elements --- Libraries/LibWeb/CSS/Default.css | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/CSS/Default.css b/Libraries/LibWeb/CSS/Default.css index 5d83d30e62..c5ea35edab 100644 --- a/Libraries/LibWeb/CSS/Default.css +++ b/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; }