diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-stretch-computed.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-width-computed.txt similarity index 50% rename from Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-stretch-computed.txt rename to Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-width-computed.txt index cc15bcfd71f..c8838621d99 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-stretch-computed.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-width-computed.txt @@ -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' diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-stretch-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-width-invalid.txt similarity index 50% rename from Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-stretch-invalid.txt rename to Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-width-invalid.txt index acde919753b..a7e988b0ed7 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-stretch-invalid.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-width-invalid.txt @@ -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 diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-stretch-valid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-width-valid.txt similarity index 50% rename from Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-stretch-valid.txt rename to Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-width-valid.txt index f5be019ad2a..1ab230f53a5 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-stretch-valid.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-fonts/parsing/font-width-valid.txt @@ -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 diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-fonts/parsing/font-stretch-computed.html b/Tests/LibWeb/Text/input/wpt-import/css/css-fonts/parsing/font-stretch-computed.html deleted file mode 100644 index a3e3445e916..00000000000 --- a/Tests/LibWeb/Text/input/wpt-import/css/css-fonts/parsing/font-stretch-computed.html +++ /dev/null @@ -1,41 +0,0 @@ - - -
- -