Last modified: 2014-11-12 12:04:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75297, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73297 - Indicator style sheets not working for print
Indicator style sheets not working for print
Status: NEW
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.25-git
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-12 08:24 UTC by RolandUnger
Modified: 2014-11-12 12:04 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description RolandUnger 2014-11-12 08:24:47 UTC
The style sheets for <indicator> elements are not working in print, they are ignored: no floating, no inline elements. .mw-body .mw-indicators {...}, .mw-body .mw-indicator {...} A rule with the descendant combinators .mw-body .mw-indicator(s) seems not working. They work without .mw-body.
Comment 1 Bartosz Dziewoński 2014-11-12 11:19:02 UTC
I don't understand this report, sorry. Is there a problem with default styles? Is there a problem with your own styles not working as expected?
Comment 2 RolandUnger 2014-11-12 11:42:03 UTC
It is a problem with the default styles which are not working for print.
Comment 3 Andre Klapper 2014-11-12 11:45:00 UTC
Steps to reproduce welcome.
Comment 4 RolandUnger 2014-11-12 12:04:32 UTC
I used Seamonkey/Firefox for test. Yesterday we introduced indicators at Wikivoyage/de as you can see it on screen for instance at https://de.wikivoyage.org/wiki/Siwa in the upper right corner consisting of three items (two icons and a coordinate).

There are two default css lines for this behavior:

.mw-body .mw-indicators{float:right;line-height:1.6;font-size:0.875em;position:relative;z-index:1}

.mw-body .mw-indicator{display:-moz-inline-block;display:inline-block;zoom:1;*display:inline}

But these rules are not working if you print the article (or use print preview or print version in the side bar). In the print, all three items are on the left side once below the other. Therefore I introduced workaround styles in Mediawiki:Common.css like:

.mw-indicators { /* Workaround for bug 73297 */
 float:right;
 line-height:1.6;
 font-size:0.875em;
 position:relative;
 z-index:1
}
.mw-indicator { /* Workaround for bug 73297 */
 display:-moz-inline-block;
 display:inline-block;
 zoom:1;
 *display:inline
}

And now it works. These are the same rules but without mw-body ie without descendant combinators.

You should also think about rtl writing fpr Hebrew and Arabic sites

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links