layout: Round clientTop, etc queries to pixels properly (#31187)

* layout: Round getClientRect queries to pixels properly

Instead of just flooring all pixels in getClientRect queries, we should
round the rectangle.

* Fix scrollWidth/scrollHeight too, and tests

* Tests passing

* Test expectation for legacy layout

---------

Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Martin Robinson 2024-01-27 17:34:21 +01:00 committed by GitHub
parent bbba839278
commit bbe505e52b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 194 additions and 25 deletions

View file

@ -562330,6 +562330,13 @@
{}
]
],
"subpixel-sizes-and-offsets.tentative.html": [
"d198b9dde60c8cac16241c412d3e55f772166010",
[
null,
{}
]
],
"table-border-collapse-client-width-height.html": [
"a7a1a435b2279ccb07136ed295dcc25b38c2c87c",
[