Set break-word on figcaption
authorArlo Breault <abreault@wikimedia.org>
Tue, 1 May 2018 18:40:25 +0000 (14:40 -0400)
committerArlo Breault <abreault@wikimedia.org>
Thu, 13 Sep 2018 16:29:32 +0000 (11:29 -0500)
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

index d880e8b..3f33837 100644 (file)
@@ -135,6 +135,7 @@ figure[ typeof~='mw:Audio/Frame' ] {
 
        > figcaption {
                display: block;
 
        > 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
 
                /* In mw-core the font-size is duplicated, 94% in thumbiner
                 * and again 94% in thumbcaption. 88.4% for font size of the