LibWeb: Omit nonzero fill rule when serializing polygon()

Gains us ~160 WPT passes
This commit is contained in:
Callum Law
2026-01-06 22:46:08 +13:00
committed by Tim Ledbetter
parent 8a8383d59d
commit 72a00a17cc
Notes: github-actions[bot] 2026-01-06 10:50:56 +00:00
4 changed files with 19 additions and 17 deletions

View File

@@ -2,9 +2,8 @@ Harness status: OK
Found 4 tests
1 Pass
3 Fail
Fail Property shape-outside value 'polygon(1% 2%)'
Fail Property shape-outside value 'polygon(calc(100% - 20px) calc(30% + 10px))'
Fail Property shape-outside value 'polygon(nonzero, 1px 2px, 3em 4em)'
4 Pass
Pass Property shape-outside value 'polygon(1% 2%)'
Pass Property shape-outside value 'polygon(calc(100% - 20px) calc(30% + 10px))'
Pass Property shape-outside value 'polygon(nonzero, 1px 2px, 3em 4em)'
Pass Property shape-outside value 'polygon(evenodd, 1px 2px, 3em 4em, 6pt 6%)'

View File

@@ -2,9 +2,8 @@ Harness status: OK
Found 4 tests
1 Pass
3 Fail
Fail e.style['shape-outside'] = "polygon(1% 2%)" should set the property value
Fail e.style['shape-outside'] = "polygon(calc(100% - 20px) calc(30% + 10px))" should set the property value
Fail e.style['shape-outside'] = "polygon(nonzero, 1px 2px, 3em 4em)" should set the property value
4 Pass
Pass e.style['shape-outside'] = "polygon(1% 2%)" should set the property value
Pass e.style['shape-outside'] = "polygon(calc(100% - 20px) calc(30% + 10px))" should set the property value
Pass e.style['shape-outside'] = "polygon(nonzero, 1px 2px, 3em 4em)" should set the property value
Pass e.style['shape-outside'] = "polygon(evenodd, 1px 2px, 3em 4em, 5pt 6%)" should set the property value