mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
Add long-winded comment about why display: table is needed
This commit is contained in:
parent
4473805c27
commit
f261919fee
|
|
@ -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%;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue