Fix geometry queries for floats and replaced inlines (#34083)

APIs like `clientWidth` were returning zero.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2024-10-31 15:44:15 +01:00 committed by GitHub
parent 62c7951424
commit 31566aef02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
101 changed files with 5 additions and 2303 deletions

View file

@ -1,28 +1,4 @@
[basic.html]
[<img src="/images/green-256x256.png" data-expect="256">]
expected: FAIL
[<img srcset="/images/green-256x256.png 1x" data-expect="256">]
expected: FAIL
[<img srcset="/images/green-256x256.png 1.6x" data-expect="160">]
expected: FAIL
[<img srcset="/images/green-256x256.png 2x" data-expect="128">]
expected: FAIL
[<img srcset="/images/green-256x256.png 256w" sizes="256px" data-expect="256">]
expected: FAIL
[<img srcset="/images/green-256x256.png 512w" sizes="256px" data-expect="128">]
expected: FAIL
[<img srcset="/images/green-256x256.png 256w" sizes="512px" data-expect="512">]
expected: FAIL
[<img srcset="/images/green-256x256.png 256w" sizes="1px" data-expect="1">]
expected: FAIL
[<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20width='20'%20height='20'><circle%20r='1'/></svg> 2x" data-expect="10">]
expected: FAIL

View file

@ -1,6 +0,0 @@
[not-broken-while-load-task-scheduled.html]
[run_test("src")]
expected: FAIL
[run_test("srcset")]
expected: FAIL