Tests: Reimport font-stretch tests as font-width

Corresponds to 7c0c4806bb
This commit is contained in:
Sam Atkins 2025-04-02 12:45:16 +01:00
commit bd7a08da3b
Notes: github-actions[bot] 2025-04-02 13:56:25 +00:00
9 changed files with 142 additions and 102 deletions

View file

@ -1,9 +1,24 @@
Harness status: OK
Found 15 tests
Found 30 tests
4 Pass
11 Fail
8 Pass
22 Fail
Fail Property font-width value 'ultra-condensed'
Fail Property font-width value 'extra-condensed'
Fail Property font-width value 'condensed'
Fail Property font-width value 'semi-condensed'
Fail Property font-width value 'normal'
Fail Property font-width value 'semi-expanded'
Fail Property font-width value 'expanded'
Fail Property font-width value 'extra-expanded'
Fail Property font-width value 'ultra-expanded'
Pass Property font-width value '234.5%'
Pass Property font-width value 'calc(100%)'
Pass Property font-width value 'calc(0%)'
Fail Property font-width value 'calc(-100%)'
Pass Property font-width value 'calc(100% + 100%)'
Fail Property font-width value 'calc(100% + (sign(20cqw - 10px) * 5%))'
Fail Property font-stretch value 'ultra-condensed'
Fail Property font-stretch value 'extra-condensed'
Fail Property font-stretch value 'condensed'

View file

@ -1,8 +1,12 @@
Harness status: OK
Found 4 tests
Found 8 tests
4 Pass
8 Pass
Pass e.style['font-width'] = "auto" should not set the property value
Pass e.style['font-width'] = "normal, ultra-condensed" should not set the property value
Pass e.style['font-width'] = "condensed expanded" should not set the property value
Pass e.style['font-width'] = "-50%" should not set the property value
Pass e.style['font-stretch'] = "auto" should not set the property value
Pass e.style['font-stretch'] = "normal, ultra-condensed" should not set the property value
Pass e.style['font-stretch'] = "condensed expanded" should not set the property value

View file

@ -1,9 +1,24 @@
Harness status: OK
Found 15 tests
Found 30 tests
14 Pass
1 Fail
28 Pass
2 Fail
Pass e.style['font-width'] = "normal" should set the property value
Pass e.style['font-width'] = "ultra-condensed" should set the property value
Pass e.style['font-width'] = "extra-condensed" should set the property value
Pass e.style['font-width'] = "condensed" should set the property value
Pass e.style['font-width'] = "semi-condensed" should set the property value
Pass e.style['font-width'] = "semi-expanded" should set the property value
Pass e.style['font-width'] = "expanded" should set the property value
Pass e.style['font-width'] = "extra-expanded" should set the property value
Pass e.style['font-width'] = "ultra-expanded" should set the property value
Pass e.style['font-width'] = "234.5%" should set the property value
Pass e.style['font-width'] = "calc(100%)" should set the property value
Pass e.style['font-width'] = "calc(0%)" should set the property value
Pass e.style['font-width'] = "calc(-100%)" should set the property value
Pass e.style['font-width'] = "calc(100% + 100%)" should set the property value
Fail e.style['font-width'] = "calc(100% + (sign(20cqw - 10px) * 5%))" should set the property value
Pass e.style['font-stretch'] = "normal" should set the property value
Pass e.style['font-stretch'] = "ultra-condensed" should set the property value
Pass e.style['font-stretch'] = "extra-condensed" should set the property value