Add test for percentage sizes resolving against subpixel lengths (#35809)

Two floats with `width: 50%` each should fit on the same line,
and four floats with `width: 25%` each should fit on the same line.
That's even if the containing block width, expressed in layout units,
cannot be divided by 2 or 4.
This test checks cases that are tricky for browsers where 1 pixel
are either 60, 64 or 100 layout units.
It passes on other browsers but fails on Servo because of #34665.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-03-10 13:09:21 +01:00 committed by GitHub
parent 71c207ff25
commit 6cfa94f3bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 168 additions and 0 deletions

View file

@ -0,0 +1,2 @@
[percentage-width-subpixels.tentative.html]
expected: FAIL