Add long-winded comment about why display: table is needed

This commit is contained in:
Andrew Morgan 2022-11-08 16:35:53 +00:00
parent 4473805c27
commit f261919fee

View file

@ -340,6 +340,16 @@ footer {
} }
table { table {
/* Docsy makes all tables "responsive tables", which causes Bootstrap 4 to create
* tables with a "display" property of "block".
*
* However, for "table-layout: fixed" to be effective, an element must have a
* "display" property of "table".
*
* Thus, we override the "display" property here. This may no longer be necessary once
* Docsy updates to Bootstrap v5+: https://github.com/google/docsy/issues/470.
* For more details, see
* https://github.com/matrix-org/matrix-spec/pull/1295/files#r1010759688 */
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100%; width: 100%;