LibWeb: Support non-literal integers in repeat()

We now support non-literal integers (i.e. `calc()` and tree counting
functions) within `<track-repeat>` and `<fixed-repeat>`
This commit is contained in:
Callum Law
2026-03-29 14:50:35 +13:00
committed by Sam Atkins
parent f2a8099d13
commit 3b3f06bfa3
Notes: github-actions[bot] 2026-03-30 13:06:43 +00:00
6 changed files with 29 additions and 32 deletions

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 25 tests
23 Pass
2 Fail
24 Pass
1 Fail
Fail Property grid-template-columns value 'none'
Pass Property grid-template-columns value '1px'
Pass Property grid-template-columns value '1px [a]'
@@ -28,4 +28,4 @@ Pass Property grid-template-columns value '100% [a] repeat(auto-fit, [b] 200% [c
Pass Property grid-template-columns value '[a] 1em repeat(1, 2em [b] 3em) 4em [d]'
Pass Property grid-template-columns value '[a] 1em repeat(auto-fill, 2em [b] 3em) 4em [d]'
Pass Property grid-template-columns value '[a] 1em repeat(auto-fit, 2em [b] 3em) 4em [d]'
Fail Property grid-template-columns value 'repeat(calc(1 + 3 * sign(100em - 1px)), 150px)'
Pass Property grid-template-columns value 'repeat(calc(1 + 3 * sign(100em - 1px)), 150px)'