AlaskanEmily pointed out that there's some spec text about print header/footer placement; but unfortunately it doesn't actually match what any browser does, so I probably won't use it to inform our behavior here (for now at least). In particular, it wants header/footer-text to be vertically centered in the margin area, which seems kind of reasonable, but no browser does that as far as I can tell. (And it has a downside that if you print two different documents with different margins, the headers/footers will be at different positions which is perhaps annoying.) I filed https://github.com/w3c/csswg-drafts/issues/5870 to see if we can get the spec to match reality (or to double-down on its requirements if in fact that really is the behavior that more sophisticated print engines have).
Bug 1669910 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
AlaskanEmily pointed out that there's some css-page-3 spec text about print header/footer placement; but unfortunately it doesn't actually match what any browser does, so I probably won't use it to inform our behavior here (for now at least). In particular, the spec wants header/footer-text to be vertically centered in the margin area, which seems kind of reasonable, but no browser does that as far as I can tell. (And it has a downside that if you print two different documents with different margins, the headers/footers will be at different positions which is perhaps annoying.) I filed https://github.com/w3c/csswg-drafts/issues/5870 to see if we can get the spec to match reality (or to double-down on its requirements if in fact that really is the behavior that more sophisticated print engines have).