mirror of
https://github.com/servo/servo
synced 2026-05-13 10:27:03 +02:00
According to [spec](https://w3c.github.io/webdriver/#ref-for-dfn-move-target-out-of-bounds-2:~:text=the%20viewport%20in%20CSS%20pixels), we are supposed to retrieve viewport size in CSS pixel. This is a critical step when performing scroll/pointermove, to stop invalid actions that happen outside viewport. Testing: Tested with tests in headed mode manually, narrowing discrepancy between headed/headless mode. Should not have effect on automated tests in CI. Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>