Adds two new variables for printing—page size and min-width for the <body> and .container. Using the docs homepage as my example, this printed the most similar in macOS Chrome and Safari. I'll check in on Windows browsers before merging.
While working on this, a few things came to light:
- Safari doesn't respect
@page'ssize, hence themin-widths. - Chrome is super finicky with
@page. Addingmarginor!importantbroke thesizeproperty.
I'm expecting even more issues across other browsers as I get into them.
Hopefully fixes #23864 (closed) and fixes #23992 (closed).
/cc @tigermarques @michaelkrieger