https://bugzilla.wikimedia.org/show_bug.cgi?id=49722

--- Comment #3 from Matthew Flaschen <[email protected]> ---
(In reply to comment #2)
> Which is wrong, those things are not supposed to be loaded on a print page
> (to avoid e.g. collapsible buttons, "[show]", etc.). Though some of those are
> hidden by CSS, it'd be better for them to not initialise in the first place.

Well, if we do that, we need to find an equally simple way to debug the print
CSS.  There are extensions that are supposed to do it (e.g.
https://addons.mozilla.org/en-US/firefox/addon/web-developer/), but it shows
the screen *and* print styles.  There's probably a good way to do it, just need
to find it.

More importantly to the average user, we may want to run some JS on the
printable=yes view.  People sometimes read in that view, and there's some stuff
that works in that bare-bones mode.

For instance, the reference popups on enwiki
(https://en.wikipedia.org/wiki/MediaWiki:Gadget-ReferenceTooltips.js) currently
work there, and it seems useful.  You can even get the popup to print with some
finagling.

That illustrates that the print styles apply to the current DOM, not the
original HTML source.  So even if the JS doesn't run in printable=yes, all the
print styles still need to be correct in case they just print directly (without
using printable view).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to