r76522 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76521‎ | r76522 | r76523 >
Date:16:03, 11 November 2010
Author:hartman
Status:resolved (Comments)
Tags:
Comment:
Use CSS pagination options when printing.
- Avoid pagebreaks after headers
- Avoid pagebreaks inside images and wikitables
- Avoid less than 3 lines at the end of beginning of paragraphs.

Works on Opera, and partly on Firefox.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/skins/common/commonPrint.css (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/commonPrint.css
@@ -348,3 +348,15 @@
349349 a.sortheader {
350350 margin: 0px 0.3em;
351351 }
 352+
 353+/* Some pagination options */
 354+.wikitable, .thumb, img {
 355+ page-break-inside: avoid;
 356+}
 357+h2, h3, h4, h5, h6, h7 {
 358+ page-break-after: avoid;
 359+}
 360+p {
 361+ widows: 3;
 362+ orpans: 3;
 363+}
Index: trunk/phase3/RELEASE-NOTES
@@ -202,6 +202,7 @@
203203 * Add CSS classes (including namespace and pagename) to the enhanced recent
204204 changes/watchlist entries
205205 * (bug 22463) Add hook 'SkinGetPoweredBy' to make 'powered by' icon customizable
 206+* Added CSS print pagination to the print stylesheets
206207
207208 === Bug fixes in 1.17 ===
208209 * (bug 17560) Half-broken deletion moved image files to deletion archive

Follow-up revisions

RevisionCommit summaryAuthorDate
r76523Followup r76522. Typo in orphans.hartman16:05, 11 November 2010

Comments

#Comment by TheDJ (talk | contribs)   20:23, 11 November 2010

The page-break-inside:avoid on thumbnails and wikitables also seems to work for Safari/Chrome. The other two options don't seem to work.

Status & tagging log