LibWeb: Handle border-{inline,block}-* properties with a single value

Gains us 14 WPT tests
This commit is contained in:
Callum Law 2025-07-09 19:42:07 +12:00 committed by Sam Atkins
commit d280cf56e6
Notes: github-actions[bot] 2025-07-09 09:12:10 +00:00
6 changed files with 82 additions and 22 deletions

View file

@ -2,13 +2,12 @@ Harness status: OK
Found 8 tests
6 Pass
2 Fail
8 Pass
Pass Property border-block-start-color value 'currentcolor'
Pass Property border-block-start-color value 'rgb(2, 3, 4)'
Pass Property border-block-end-color value 'rgb(34, 51, 68)'
Pass Property border-block-end-color value 'transparent'
Fail Property border-block-color value 'rgb(34, 51, 68)'
Pass Property border-block-color value 'rgb(34, 51, 68)'
Pass Property border-block-color value 'transparent rgb(2, 3, 4)'
Fail Property border-block-color value 'rgb(2, 3, 4) rgb(2, 3, 4)'
Pass Property border-block-color value 'rgb(2, 3, 4) rgb(2, 3, 4)'
Pass Property border-block-color value 'currentcolor lime'

View file

@ -2,16 +2,15 @@ Harness status: OK
Found 11 tests
6 Pass
5 Fail
11 Pass
Pass Property border-block-start-width value 'calc(10px + 0.5em)'
Pass Property border-block-start-width value 'calc(10px - 0.5em)'
Pass Property border-block-start-width value 'thin'
Pass Property border-block-start-width value 'medium'
Fail Property border-block-end-width value 'calc(10px + 0.5em)'
Pass Property border-block-end-width value 'calc(10px + 0.5em)'
Pass Property border-block-end-width value 'calc(10px - 0.5em)'
Fail Property border-block-end-width value 'thick'
Fail Property border-block-width value '10px'
Fail Property border-block-width value '10px 20px'
Fail Property border-block-width value '10px 10px'
Pass Property border-block-end-width value 'thick'
Pass Property border-block-width value '10px'
Pass Property border-block-width value '10px 20px'
Pass Property border-block-width value '10px 10px'
Pass width is zero if the border block style is none or hidden

View file

@ -2,13 +2,12 @@ Harness status: OK
Found 8 tests
6 Pass
2 Fail
8 Pass
Pass Property border-inline-start-color value 'currentcolor'
Pass Property border-inline-start-color value 'rgb(2, 3, 4)'
Pass Property border-inline-end-color value 'rgb(34, 51, 68)'
Pass Property border-inline-end-color value 'transparent'
Fail Property border-inline-color value 'rgb(34, 51, 68)'
Pass Property border-inline-color value 'rgb(34, 51, 68)'
Pass Property border-inline-color value 'transparent rgb(2, 3, 4)'
Fail Property border-inline-color value 'rgb(2, 3, 4) rgb(2, 3, 4)'
Pass Property border-inline-color value 'rgb(2, 3, 4) rgb(2, 3, 4)'
Pass Property border-inline-color value 'currentcolor lime'

View file

@ -2,16 +2,15 @@ Harness status: OK
Found 11 tests
6 Pass
5 Fail
11 Pass
Pass Property border-inline-start-width value 'calc(10px + 0.5em)'
Pass Property border-inline-start-width value 'calc(10px - 0.5em)'
Pass Property border-inline-start-width value 'thin'
Pass Property border-inline-start-width value 'medium'
Fail Property border-inline-end-width value 'calc(10px + 0.5em)'
Pass Property border-inline-end-width value 'calc(10px + 0.5em)'
Pass Property border-inline-end-width value 'calc(10px - 0.5em)'
Fail Property border-inline-end-width value 'thick'
Fail Property border-inline-width value '10px'
Fail Property border-inline-width value '10px 20px'
Fail Property border-inline-width value '10px 10px'
Pass Property border-inline-end-width value 'thick'
Pass Property border-inline-width value '10px'
Pass Property border-inline-width value '10px 20px'
Pass Property border-inline-width value '10px 10px'
Pass width is zero if the border block style is none or hidden