4 ms·
Browsers don't normally work with paper-like pages, they work with essentially infinitely scrollable areas. So a browser layout engine is not in any way, shape
by tsimionescu 6y ago
Browsers don't normally work with paper-like pages, they work with essentially infinitely scrollable areas. So a browser layout engine is not in any way, shape or form optimized for laying out HTML + CSS in a printer friendly way, especially if you start having 'weird' requirements like A4 vs Letter, smart layout of tables across pages so that they are still readable etc.
In fact, in general, a human being must actually lay these things out by hand for print if that is the desired medium.
- anoncake 6y agoThat doesn't matter. Layout is the job of the browser. If it sucks, it sucks. That is no reason for ugly hacks.
- tsimionescu 6y agoWhich is an excellent attitude for a short PoC, but unimaginable for a paid product. In the end, the user doesn't care. They want the printed page to be usable. If the browser makes it usable, excellent! If it doesn't, than the product is bad and an alternative must be found. Sure, Google, being in control of Chrome, could implement a browser-level page layout engine. Unfortunately, there is obviously no way to make a good general purpose layout engine, so that will never fly. Any site that wants to offer printing as a paid feautre must implement their own printable version, no question.
- deleted 6y ago[deleted]
- anoncake 6y agoWhat was so special about Wave that a general purpose layout engine wouldn't be adequate?