From 92ddf5dc64563f799ec50e4bec6c7bac8847b0e5 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Tue, 1 May 2018 14:40:25 -0400 Subject: [PATCH] Set break-word on figcaption This is using the non-standard value of word-break, instead of overflow-wrap/word-wrap, since the latter doesn't produce the desired effect. That may be due to figure being displayed as a table, without the layout being "fixed". Unfortunately, non-Webkit based browsers don't implement this and break-all is a little heavy handed for the few cases this turns up in practice. Bug: T171761 Change-Id: If123d30addb4c707ebed63bafd18dccba9afe158 --- resources/src/mediawiki.skinning/content.parsoid.less | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/src/mediawiki.skinning/content.parsoid.less b/resources/src/mediawiki.skinning/content.parsoid.less index d880e8bebd..3f33837534 100644 --- a/resources/src/mediawiki.skinning/content.parsoid.less +++ b/resources/src/mediawiki.skinning/content.parsoid.less @@ -135,6 +135,7 @@ figure[ typeof~='mw:Audio/Frame' ] { > figcaption { display: block; + word-break: break-word; /* In mw-core the font-size is duplicated, 94% in thumbiner * and again 94% in thumbcaption. 88.4% for font size of the -- 2.20.1