From: Arlo Breault Date: Tue, 1 May 2018 18:40:25 +0000 (-0400) Subject: Set break-word on figcaption X-Git-Tag: 1.34.0-rc.0~4045^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=92ddf5dc64563f799ec50e4bec6c7bac8847b0e5;p=lhc%2Fweb%2Fwiklou.git 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 --- 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