List of steps to reproduce (step by step, including full links if applicable):
- https://en.wikipedia.org/wiki/Template_talk:Infobox_football_club#Width_in_Timeless_skin
- The editors use the toccolours class, which per it name should set the colours of the toc, but here caused it to take up 1 column instead of 2 columns when nested inside an infobox.
What happens?:
- The display property is set to table, which is unexpected and causes the table to take up one column instead of 2 columns in the layout (weird CSS heritage)
What should have happened instead?:
- The element should have taken up two columns (because of colspan=2")
- This is because timeless treats .toccolours and .toc identically, but the first on isn't name "colours" for nothing, it should only set visual styling, not layout. See also https://gerrit.wikimedia.org/g/mediawiki/core/+/e46d36c658d0fc3dbd95060022934da1f5d3ae2e/resources/src/mediawiki.skinning/toc/screen.less#14
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.: