LibWeb: Support border radius in rect() function

This commit is contained in:
Callum Law
2026-01-05 22:44:11 +13:00
committed by Jelle Raaijmakers
parent 1b7567cc86
commit 02a8d22a4e
Notes: github-actions[bot] 2026-01-06 09:51:22 +00:00
5 changed files with 41 additions and 19 deletions

View File

@@ -2,16 +2,15 @@ Harness status: OK
Found 11 tests
6 Pass
5 Fail
11 Pass
Pass Property clip-path value 'rect(0 0 0 0)'
Pass Property clip-path value 'rect(10px auto 20px 30px)'
Pass Property clip-path value 'rect(auto auto auto auto)'
Pass Property clip-path value 'rect(10% 20% 15% 12%)'
Pass Property clip-path value 'rect(10% 95% 97% 12%)'
Pass Property clip-path value 'rect(-10% -20% -15% -12%)'
Fail Property clip-path value 'rect(10px 12% 20px 30px round 100%)'
Fail Property clip-path value 'rect(10px 12% 20px 30px round 0 1px)'
Fail Property clip-path value 'rect(10px 12% 20px 30px round 0px 1px 2%)'
Fail Property clip-path value 'rect(10px 12% 20px 30px round 0px 1px 2% 3em)'
Fail Property clip-path value 'rect(10px 12% 20px 30px round 20% / 0px 1px 2% 3em)'
Pass Property clip-path value 'rect(10px 12% 20px 30px round 100%)'
Pass Property clip-path value 'rect(10px 12% 20px 30px round 0 1px)'
Pass Property clip-path value 'rect(10px 12% 20px 30px round 0px 1px 2%)'
Pass Property clip-path value 'rect(10px 12% 20px 30px round 0px 1px 2% 3em)'
Pass Property clip-path value 'rect(10px 12% 20px 30px round 20% / 0px 1px 2% 3em)'

View File

@@ -2,16 +2,15 @@ Harness status: OK
Found 11 tests
6 Pass
5 Fail
11 Pass
Pass e.style['clip-path'] = "rect(0 0 0 0)" should set the property value
Pass e.style['clip-path'] = "rect(10px auto 20px 30px)" should set the property value
Pass e.style['clip-path'] = "rect(auto auto auto auto)" should set the property value
Pass e.style['clip-path'] = "rect(10% 20% 15% 12%)" should set the property value
Pass e.style['clip-path'] = "rect(10% 95% 97% 12%)" should set the property value
Pass e.style['clip-path'] = "rect(-10% -20% -15% -12%)" should set the property value
Fail e.style['clip-path'] = "rect(10px 12% 20px 30px round 100%)" should set the property value
Fail e.style['clip-path'] = "rect(10px 12% 20px 30px round 0 1px)" should set the property value
Fail e.style['clip-path'] = "rect(10px 12% 20px 30px round 0px 1px 2%)" should set the property value
Fail e.style['clip-path'] = "rect(10px 12% 20px 30px round 0px 1px 2% 3em)" should set the property value
Fail e.style['clip-path'] = "rect(10px 12% 20px 30px round 20% / 0px 1px 2% 3em)" should set the property value
Pass e.style['clip-path'] = "rect(10px 12% 20px 30px round 100%)" should set the property value
Pass e.style['clip-path'] = "rect(10px 12% 20px 30px round 0 1px)" should set the property value
Pass e.style['clip-path'] = "rect(10px 12% 20px 30px round 0px 1px 2%)" should set the property value
Pass e.style['clip-path'] = "rect(10px 12% 20px 30px round 0px 1px 2% 3em)" should set the property value
Pass e.style['clip-path'] = "rect(10px 12% 20px 30px round 20% / 0px 1px 2% 3em)" should set the property value