content was "drifting" when paged by <html> width

Revert "simplify page boundary calculation to <html> width"

This reverts commit 9b17ad612396b2b7373c38abe7f276004b0a3074.
support a variety of sizes in boundary calculation