LibWeb: Import CSS logical border property parsing WPT tests

This commit is contained in:
Callum Law 2025-07-09 19:34:47 +12:00 committed by Sam Atkins
commit ceb1c37ba3
Notes: github-actions[bot] 2025-07-09 09:12:17 +00:00
16 changed files with 446 additions and 0 deletions

View file

@ -0,0 +1,14 @@
Harness status: OK
Found 8 tests
6 Pass
2 Fail
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 '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 'currentcolor lime'

View file

@ -0,0 +1,18 @@
Harness status: OK
Found 13 tests
13 Pass
Pass Property border-block-start-style value 'dotted'
Pass Property border-block-start-style value 'groove'
Pass Property border-block-start-style value 'inset'
Pass Property border-block-start-style value 'none'
Pass Property border-block-start-style value 'solid'
Pass Property border-block-end-style value 'dashed'
Pass Property border-block-end-style value 'double'
Pass Property border-block-end-style value 'hidden'
Pass Property border-block-end-style value 'outset'
Pass Property border-block-end-style value 'ridge'
Pass Property border-block-style value 'dotted'
Pass Property border-block-style value 'double groove'
Pass Property border-block-style value 'hidden hidden'

View file

@ -0,0 +1,12 @@
Harness status: OK
Found 6 tests
4 Pass
2 Fail
Fail e.style['border-block'] = "1px dotted red" should set the property value
Fail e.style['border-block'] = "double" should set the property value
Pass e.style['border-block-start'] = "green double thin" should set the property value
Pass e.style['border-block-start'] = "green" should set the property value
Pass e.style['border-block-end'] = "thin" should set the property value
Pass e.style['border-block-end'] = "calc(10px - 0.5em) dotted red" should set the property value

View file

@ -0,0 +1,17 @@
Harness status: OK
Found 11 tests
6 Pass
5 Fail
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)'
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 width is zero if the border block style is none or hidden

View file

@ -0,0 +1,14 @@
Harness status: OK
Found 8 tests
6 Pass
2 Fail
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 '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 'currentcolor lime'

View file

@ -0,0 +1,18 @@
Harness status: OK
Found 13 tests
13 Pass
Pass Property border-inline-start-style value 'dotted'
Pass Property border-inline-start-style value 'groove'
Pass Property border-inline-start-style value 'inset'
Pass Property border-inline-start-style value 'none'
Pass Property border-inline-start-style value 'solid'
Pass Property border-inline-end-style value 'dashed'
Pass Property border-inline-end-style value 'double'
Pass Property border-inline-end-style value 'hidden'
Pass Property border-inline-end-style value 'outset'
Pass Property border-inline-end-style value 'ridge'
Pass Property border-inline-style value 'dotted'
Pass Property border-inline-style value 'double groove'
Pass Property border-inline-style value 'hidden hidden'

View file

@ -0,0 +1,12 @@
Harness status: OK
Found 6 tests
4 Pass
2 Fail
Fail e.style['border-inline'] = "1px dotted red" should set the property value
Fail e.style['border-inline'] = "double" should set the property value
Pass e.style['border-inline-start'] = "green double thin" should set the property value
Pass e.style['border-inline-start'] = "green" should set the property value
Pass e.style['border-inline-end'] = "thin" should set the property value
Pass e.style['border-inline-end'] = "calc(10px - 0.5em) dotted red" should set the property value

View file

@ -0,0 +1,17 @@
Harness status: OK
Found 11 tests
6 Pass
5 Fail
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)'
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 width is zero if the border block style is none or hidden