Last modified: 2007-07-22 21:33:07 UTC
Text obscured within an overflow/scroll box remain obscured when printed. This prevents readers of the printed page from seeing content obscured within a handful of image galleries that are inside of "template:scroll box" galleries on the it wikipedia, numerous text from most namespaces other than Main on the en Wikipedia within that same template, and the raw HTML keeps coming up in edits like this: http://en.wikipedia.org/w/index.php?title=United_States&diff=146047696&oldid=146044645 Regardless of the specific examples above, nothing should be hidden from readers of the printable layout of any wiki. If fixed, this should probably be fed into not only Wikimedia projects but also the default printable css for the current version of MediaWiki as well. Relevant discussion from en wiki: * http://en.wikipedia.org/w/index.php?title=Wikipedia:Bot_requests&curid=912023&diff=145731448&oldid=145714756#Accessibility_and_printable_layout-breaking_div_markup From this link: "A developer can add the following to /skins-1.5/common/commonPrint.css, and the problem would be solved (in the printable version, at least): * { overflow: visible !important; } " * http://en.wikipedia.org/w/index.php?title=MediaWiki_talk:Common.js&oldid=146019315
Demo on Wikia: http://www.wikia.com/index.php?title=Sandbox/testoverflow&printable=yes Demo on the en wikipedia: http://en.wikipedia.org/wiki/User:Mrzaius/sandbox/overflowtest
* { overflow: visible !important; } is completely unacceptable in that it unthinkingly overrides perfectly legitimate uses of overflow. (If a particular wiki doesn't care, they can add it to Common.css in a @media tag just as easily as we can.) The correct answer is for overflow: auto/scroll to either not be used to obscure important content, or to only be used as part of classes that are specifically overridden for print. This is a content issue, not software. *** This bug has been marked as a duplicate of bug 10239 ***
There are no legitimate uses of overflow that warrant not disabling it in the default printable css. This isn't a software issue, but it is much more than a single-wiki issue.
(In reply to comment #3) > There are no legitimate uses of overflow that warrant not disabling it in the > default printable css. Not true. overflow: hidden;, for instance, is often used to create a new block formatting context, rather than for its overflow effects (see bug 1629). In some layouts non-visible overflow values may be the lesser of two evils for print, if the alternative is to have overtyping or other unpleasant effects. In the case of overflow: auto or overflow: scroll on a block with a fixed height, for instance, the correct solution for print is to remove the fixed height, not remove the overflow; the latter may make the page unreadable by overprinting.