GWicke has uploaded a new change for review. https://gerrit.wikimedia.org/r/286772
Change subject: Print styles: Wrap CSS-generated URLs ...................................................................... Print styles: Wrap CSS-generated URLs Chrome does not actually break CSS-generated URL content with word-wrap, which causes some infoboxes to expand to the entire page. This patch adds the word-break CSS property, which allows Chrome to break those URLs at any position. This fixes the rendering of infoboxes on pages like https://en.wikipedia.org/wiki/San_Francisco. With basically all PDF generators (including browsers) including clickable links & many PDFs consumed on-screen it might be worth considering making print URLs optional at some point, and defaulting to "screen optimized" PDFs. Change-Id: I8d03032a553643198da6a1dd8b78201a9255fcbb --- M resources/src/mediawiki.legacy/commonPrint.css 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/72/286772/1 diff --git a/resources/src/mediawiki.legacy/commonPrint.css b/resources/src/mediawiki.legacy/commonPrint.css index c172a7f..efdc022 100644 --- a/resources/src/mediawiki.legacy/commonPrint.css +++ b/resources/src/mediawiki.legacy/commonPrint.css @@ -181,6 +181,7 @@ .mw-body a.external.autonumber:after { content: " (" attr( href ) ")"; word-wrap: break-word; + word-break: break-all; } /* Expand protocol-relative URLs for printing */ -- To view, visit https://gerrit.wikimedia.org/r/286772 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8d03032a553643198da6a1dd8b78201a9255fcbb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: GWicke <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
