github web-platform-tests/wpt merge_pr_48238

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
3 months ago

[wptrunner] Generalize WebDriver-based print-reftest implementation (#48238)

Most of the implementation is lifted verbatim from an existing
chromedriver one, except the nonstandard CDP call in render_as_pdf()
is replaced by an equivalent one to WebDriver's "print page" 0.

shrinkToFit is actually a WebDriver parameter, not a CDP one, so this
PR also fixes some incorrectly scaled screenshots 1.

Don't miss a new wpt release

NewReleases is sending notifications on new releases.