layout: <th> should have text-align: center when the child of an element with text-align: initial (#33427)

This behavir is enabled via a special CSS value that we can share with
Gecko.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Martin Robinson 2024-09-12 21:28:31 +02:00 committed by GitHub
parent 219a2f2038
commit db0aee6b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 26 deletions

View file

@ -296,7 +296,10 @@ table {
text-indent: initial;
}
td, th { padding: 1px; }
th { font-weight: bold; }
th {
font-weight: bold;
text-align: -moz-center-or-inherit;
}
thead, tbody, tfoot, table > tr { vertical-align: middle; }
tr, td, th { vertical-align: inherit; }