Bug 1681183 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

STR:
 1. View a testcase that tries to print at the actual edge of the page, like this one:
```
data:text/html,<body style="margin:0"><div style="border:1px solid;height:400px ">abc
```
2. Ctrl+P to open the print dialog.
3. Under "Destination", choose a real physical printer (not print to PDF)
3. Expand the "More Settings" section.
4. In the "Margins" dropdown, choose "None"
5. Print (or just look at the print preview rendering)

ACTUAL RESULTS:
The page is printed (and shown in print-preview) *with some margins*, despite my choice of "Margins: None".  (I think we're setting aside some space for the printer's "unwriteable margins", probably?

EXPECTED RESULTS:
The page should be printed (and shown in print-preview) with literally no page-margins.  This should probably mean that the text and/or borders are clipped along the top and sides of the page.


Chrome gives EXPECTED RESULTS.

Our behavior here for "Margins: None" seems to behave exactly the same as "Margins: Minimum" (and matches how I would expect Minimum to behave), where "Minimum" is interpreted as "minimum without any clipping" and None means "literally no margins, which may produce clipping, which is fine".

We need EXPECTED RESULTS in order for people to be able to print out precisely measured content, with e.g. a div that's reliably 4in from the left of the page.
STR:
 1. View a testcase that tries to print right up to the actual edge of the page, like this one:
```
data:text/html,<body style="margin:0"><div style="border:1px solid;height:400px ">abc
```
2. Ctrl+P to open the print dialog.
3. Under "Destination", choose a real physical printer (not print to PDF)
3. Expand the "More Settings" section.
4. In the "Margins" dropdown, choose "None"
5. Print (or just look at the print preview rendering)

ACTUAL RESULTS:
The page is printed (and shown in print-preview) *with some margins*, despite my choice of "Margins: None".  (I think we're setting aside some space for the printer's "unwriteable margins", probably?

EXPECTED RESULTS:
The page should be printed (and shown in print-preview) with literally no page-margins.  This should probably mean that the text and/or borders are clipped along the top and sides of the page.


Chrome gives EXPECTED RESULTS.

Our behavior here for "Margins: None" seems to behave exactly the same as "Margins: Minimum" (and matches how I would expect Minimum to behave), where "Minimum" is interpreted as "minimum without any clipping" and None means "literally no margins, which may produce clipping, which is fine".

We need EXPECTED RESULTS in order for people to be able to print out precisely measured content, with e.g. a div that's reliably 4in from the left of the page.

Back to Bug 1681183 Comment 0