瀏覽代碼

LibWeb: Make table headings centered by default

Dominique Liberda 2 年之前
父節點
當前提交
4dc98af419
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Userland/Libraries/LibWeb/CSS/Default.css

+ 9 - 0
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 {