Bug 713383 - Directly viewed images should be printed with a transparent background on the body. r=dao

This commit is contained in:
Diogo Golovanevsky Monteiro 2012-01-31 17:58:19 +01:00
Родитель 3b3f03f5ef
Коммит dfab09deff
1 изменённых файлов: 22 добавлений и 20 удалений

Просмотреть файл

@ -37,25 +37,27 @@
are top level (e.g. not iframes).
*/
body {
background-color: #222;
margin: 0;
}
@media not print {
body {
background-color: #222;
margin: 0;
}
/* We must declare the image as a block element. If we stay as
an inline element, our parent LineBox will be inline too and
ignore the available height during reflow.
This is bad during printing, it means tall image frames won't know
the size of the paper and cannot break into continuations along
multiple pages. */
img {
color: #eee;
text-align: center;
display: block;
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
/* We must declare the image as a block element. If we stay as
an inline element, our parent LineBox will be inline too and
ignore the available height during reflow.
This is bad during printing, it means tall image frames won't know
the size of the paper and cannot break into continuations along
multiple pages. */
img {
color: #eee;
text-align: center;
display: block;
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
}