https://bugzilla.wikimedia.org/show_bug.cgi?id=17297
Philippe Verdy <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Philippe Verdy <[email protected]> 2009-09-30 06:40:20 UTC --- Paragraph margins when printing : Can someone explain why, the paragraph margins, when printing, must ABSOLUTELY be fixed to 1em ? Ask your self what will happen when we have texts (notably in Wikibooks and Wikisources, for which pages have specified another margin than the default one ? The problem is within the "/skins-1.5/common/commonPrint.css" file that contains : p, .documentDescription { margin: 1em 0 ! important; line-height: 1.2em; } And that should really do ONLY this : p, .documentDescription { margin: 1em 0; line-height: 1.2; } I.e. without the added "! important" that forbids all other settings within MediaWiki skins (e.g. Monobook.css, chick.css) as well as all other settings that may be needed within articles. The "! important" is ABSOLUTELY NOT justified, because it breaks with no benefit the layout of texts that are correct when viewed on screen. Be careful with the "! important" specifier in CSS, because it is also against all accessibility rules specified and documented by W3.org and other sites: this specifier should NEVER be used by sites themselves, it is reserved for per-user customization and adaptation. Please review ALL the "! important" settings in CSS stylesheets. For example, we have documents for which we absolutely don't want any margin between two paragraphs (when <p> is used explicitly in texts rather than implicitly with the default <p> that gets generated for blocks of texts separated by blank line that don't start by a special MediaWiki character like "=" for section titles, or * for lists, or ";" for defined terms, or ":" for indented blocks and definitions, or "|" for tables). In that case, the source document simply uses <p style="margin:0"> before that paragraph : we get the expected result on screen, but this rule in commonPrint.css breaks things, and the document's settings are simply ignored when printing it. We have similar settings for poems, or verses. We also have cases where some paragraphs are explicitly specified with larger margins (e.g. "2em" or "3em"(par exemple 2em ou 3em), and that are NOT section titles : here again the result is correct in screen, but this layout gets broken when the document is printed. Of course we could write <p style="margin:0 ! important"> within documents, but that would be even more stupide, if this is only because of this stupid CSS rule in "commonPrint.css". In other words, please drop the NON-IMPORTANT and stupid "!important" settings from "/skins-1.5/common/commonPrint.css". -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
