Tests: Import line-height WPT tests

Done in a distinct commit to show progress in later commits
This commit is contained in:
Callum Law
2025-09-23 20:28:17 +12:00
committed by Tim Ledbetter
parent e8ad657589
commit a5139733cc
Notes: github-actions[bot] 2025-09-23 14:59:02 +00:00
8 changed files with 975 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
Harness status: OK
Found 13 tests
9 Pass
4 Fail
Pass Property line-height value 'normal'
Pass Property line-height value '0'
Pass Property line-height value '2'
Pass Property line-height value '0px'
Pass Property line-height value '10px'
Pass Property line-height value '0%'
Pass Property line-height value '200%'
Pass Property line-height value 'calc(200% + 10px)'
Fail Property line-height value 'calc(10px - 0.5em)'
Pass Property line-height value 'calc(10px + 0.5em)'
Fail Property line-height value 'calc(10 + (sign(2cqw - 10px) * 5))'
Fail Property line-height value 'calc(10% + (sign(2cqw - 10px) * 5%))'
Fail Property line-height value 'calc(10px + (sign(2cqw - 10px) * 5px))'

View File

@@ -0,0 +1,13 @@
Harness status: OK
Found 8 tests
8 Pass
Pass e.style['line-height'] = "auto" should not set the property value
Pass e.style['line-height'] = "-2" should not set the property value
Pass e.style['line-height'] = "-10px" should not set the property value
Pass e.style['line-height'] = "-200%" should not set the property value
Pass e.style['line-height'] = "2 10px" should not set the property value
Pass e.style['line-height'] = "200% 3" should not set the property value
Pass e.style['line-height'] = "auto 10px" should not set the property value
Pass e.style['line-height'] = "3 auto" should not set the property value

View File

@@ -0,0 +1,13 @@
Harness status: OK
Found 8 tests
8 Pass
Pass e.style['line-height'] = "normal" should set the property value
Pass e.style['line-height'] = "0" should set the property value
Pass e.style['line-height'] = "2" should set the property value
Pass e.style['line-height'] = "0px" should set the property value
Pass e.style['line-height'] = "10px" should set the property value
Pass e.style['line-height'] = "0%" should set the property value
Pass e.style['line-height'] = "200%" should set the property value
Pass e.style['line-height'] = "calc(200% + 10px)" should set the property value