From 4dc98af4192a7d8609838601adc9d7fa9219dd4e Mon Sep 17 00:00:00 2001 From: Dominique Liberda Date: Sun, 23 Jul 2023 21:09:48 +0200 Subject: [PATCH] LibWeb: Make table headings centered by default --- Userland/Libraries/LibWeb/CSS/Default.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Userland/Libraries/LibWeb/CSS/Default.css b/Userland/Libraries/LibWeb/CSS/Default.css index efc57dae9d..b9556f46ba 100644 --- a/Userland/Libraries/LibWeb/CSS/Default.css +++ b/Userland/Libraries/LibWeb/CSS/Default.css @@ -525,6 +525,15 @@ td, th { th { font-weight: bold; + /* + The text-align property for table headings is non-standard, but all + existing user-agents seem to render them centered by default. + + See: + - https://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css?rev=295625#L272 + - https://searchfox.org/mozilla-central/rev/0b55b868c17835942d40ca3fedfca8057481207b/layout/style/res/html.css#473 + */ + text-align: center; } caption {