w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
684 stars 195 forks source link

Enforce 1pt minimum size for Print page command #1842

Closed juliandescottes closed 1 month ago

juliandescottes commented 1 month ago

In WebDriver BiDi, the minimum width / height is currently set to 1pt (this was updated in https://github.com/w3c/webdriver-bidi/pull/522/)

It would make sense to do the same for WebDriver Classic, especially if we want to be able to use Classic via BiDi in the future.

Note that there is one wpt test which is currently attempting to set a 1px x 1px print size and would need to be updated to 1pt x 1pt. https://github.com/web-platform-tests/wpt/blob/12caf1f938/webdriver/tests/classic/print/background.py

juliandescottes commented 1 month ago

Actually already filed as #1835