Open Bug 1165699 Opened 10 years ago Updated 3 years ago

@media values max-height, min-height, max-width, min-width are tested including page margin when printing

Categories

(Core :: Printing: Output, defect)

38 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: coq, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0 Build ID: 20150513174244 Steps to reproduce: @media values max-height, min-height, max-width, min-width are tested including page margin when printing. These values should return available viewport size, therefore without print page margin. Other browsers like Chrome and IE don't include page margin here. Including the page margin in this case makes the attributes unusable, because the page margin is set by users and cannot be read by css in any way, so the available viewport size cannot be found out. For example @media only print and (min-height:1122px) { ... } is accepted for A4 page size in 96dpi regardless of the page margin. But if I have set standard 0.5in top and bottom print page margins, the (min-height:1026px) should be maximally accepted for such setting. It means (1122 - in*dpi) = 1122 - 1*96 = 1026. Like in Chrome and IE.
Component: Untriaged → Printing: Output
Product: Firefox → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.