TOC: Restore missing underlines in Firefox
authorFomafix <fomafix@googlemail.com>
Fri, 6 Nov 2015 20:27:34 +0000 (20:27 +0000)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 19 Nov 2015 16:31:22 +0000 (17:31 +0100)
According to <http://www.w3.org/TR/css-text-decor-3/#line-decoration>,
text decorations are not propagated to the contents of inline blocks
and inline tables, and 'display: table-cell' generates an inline table
when used without any parent table-rows and tables.

Firefox currently seems to be the only browser handling this correctly,
see <https://bugzilla.mozilla.org/show_bug.cgi?id=1222703>.

This is a follow-up to c7894deb.

Bug: T92481
Change-Id: Iae4a1e6fd30be950f0f1c40f47b4d2483002fe72

resources/src/mediawiki.skinning/content.css

index a5dd692..feecc61 100644 (file)
@@ -92,6 +92,12 @@ table.toc td {
 .tocnumber,
 .toctext {
        display: table-cell;
+       /*
+       Text decorations are not propagated to the contents of inline blocks and inline tables,
+       according to <http://www.w3.org/TR/css-text-decor-3/#line-decoration>, and 'display: table-cell'
+       generates an inline table when used without any parent table-rows and tables.
+       */
+       text-decoration: inherit;
 }
 
 /* Space between the columns for tocnumber and toctext */