CSS Grid: percentage sizing fixes (#34948)

This applies some fixes for CSS Grid percentage sizing. These fixes are
mostly within Taffy, but there are some changes in Servo to allow it to
communicate whether an item is replaced to Taffy.

It also updates Taffy to v0.8.0. Taffy has switched to a tagged pointer
representation of length/size styles. Much of the diff here is updating
Servo's type conversion code to use the new representation.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] There are tests for these changes OR

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
Nico Burns 2025-06-08 16:17:10 +01:00 committed by GitHub
parent bd6639aadb
commit 1b5a10a55f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 111 additions and 105 deletions

View file

@ -1,2 +1,3 @@
[grid-self-baseline-changes-grid-area-size-002.html]
expected: FAIL
expected:
if os == "linux": FAIL

View file

@ -1,2 +0,0 @@
[grid-support-grid-auto-columns-rows-003.html]
expected: CRASH

View file

@ -1,11 +1,7 @@
[grid-template-columns-computed-implicit-track.html]
expected: CRASH
[Property grid-template-columns value 'none' computes to '10px']
expected: FAIL
[Property grid-template-columns value '1px' computes to '10px 1px']
expected: FAIL
[Property grid-template-columns value '1px [a\]' computes to '10px 1px [a\]']
expected: FAIL
@ -18,15 +14,6 @@
[Property grid-template-columns value '[a\] 1px [b\]' computes to '10px [a\] 1px [b\]']
expected: FAIL
[Property grid-template-columns value '1px repeat(1, 2px) 3px' computes to '10px 1px 2px 3px']
expected: FAIL
[Property grid-template-columns value '1px repeat(auto-fill, 2px) 3px' computes to '10px 1px 2px 3px']
expected: FAIL
[Property grid-template-columns value '1px repeat(auto-fit, 2px) 3px' computes to '10px 1px 0px 3px']
expected: FAIL
[Property grid-template-columns value '1px [a\] repeat(1, 2px 3px) [b\] 4px' computes to '10px 1px [a\] 2px 3px [b\] 4px']
expected: FAIL

View file

@ -1,6 +0,0 @@
[grid-auto-flow-sparse-001.html]
[.grid 2]
expected: FAIL
[.grid 6]
expected: FAIL