Page MenuHomePhabricator

div overflow flags break printable layout
Closed, ResolvedPublic

Description

Author: cragos

Description:
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:

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; }

"


Version: unspecified
Severity: major

Details

Reference
bz10654

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:49 PM
bzimport set Reference to bz10654.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

  • { 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 ***

cragos wrote:

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.

ayg wrote:

(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.