зеркало из https://github.com/mozilla/gecko-dev.git
d275fd6251
This hooks the "monochrome" media query and co to the nsIPrintSettings.printInColor setting. This print setting we're using is not exposed in the print preview UI, but you can test it setting the print.print_in_color preference to "false", and then print preview will correctly show up greyscale'd. Once this lands, the UI folks just have to use it as they see fit :) I would've liked to add a proper rendering test, but the print reftests check only whether the PDF text matches. I could add a test to printpreview_helper.xhtml, but I'm refactoring that file in bug 1648064 so I'd rather wait a bit and add it in a separate bug. The test for the media feature should make sure that we test that code path at least. Differential Revision: https://phabricator.services.mozilla.com/D83552 |
||
---|---|---|
.. | ||
base | ||
build | ||
docs | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |