Don't use cached client_rect() when a reflow is needed (#31210)

Fixes #31195:

```js
element.style.width = "5px";
element.clientWidth; // 5
element.style.width = "15px";
element.clientWidth; // Was 5, now 15
```
This commit is contained in:
Oriol Brufau 2024-01-29 15:59:36 +01:00 committed by GitHub
parent 742d3ed97f
commit 38d9245726
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 30 deletions

View file

@ -5,9 +5,6 @@
[clientWidth, offsetWidth and scrollWidth round 5.9 to 6]
expected: FAIL
[clientHeight, offsetHeight and scrollHeight round 5.1 to 5]
expected: FAIL
[clientHeight, offsetHeight and scrollHeight round 5.5 to 6]
expected: FAIL

View file

@ -1,19 +1,4 @@
[subpixel-sizes-and-offsets.tentative.html]
[clientWidth, offsetWidth and scrollWidth round 5.5 to 6]
expected: FAIL
[clientWidth, offsetWidth and scrollWidth round 5.9 to 6]
expected: FAIL
[clientHeight, offsetHeight and scrollHeight round 5.1 to 5]
expected: FAIL
[clientHeight, offsetHeight and scrollHeight round 5.5 to 6]
expected: FAIL
[clientHeight, offsetHeight and scrollHeight round 5.9 to 6]
expected: FAIL
[clientLeft and clientTop don't round 44.9]
expected: FAIL