commit 98b169cc6a98e582a9e74e67117ef8c61cfae938 parent a8abdd1ff4601bcf54e8bccd7b34d6038b46f94c Author: Sajid Anwar <sajidanwar94@gmail.com> Date: Fri, 2 Jan 2026 09:16:52 +0000 Bug 2008335 - Update WPT to move bottom/center/top from alignment-baseline to baseline-shift per specification. r=layout-reviewers,emilio These values were moved to `baseline-shift` in https://github.com/w3c/csswg-drafts/issues/5180. Differential Revision: https://phabricator.services.mozilla.com/D277723 Diffstat:
9 files changed, 29 insertions(+), 24 deletions(-)
diff --git a/testing/web-platform/meta/css/css-inline/parsing/alignment-baseline-computed.html.ini b/testing/web-platform/meta/css/css-inline/parsing/alignment-baseline-computed.html.ini @@ -2,9 +2,6 @@ [Property alignment-baseline value 'text-top'] expected: FAIL - [Property alignment-baseline value 'center'] - expected: FAIL - [Property alignment-baseline value 'central'] expected: FAIL @@ -17,18 +14,12 @@ [Property alignment-baseline value 'text-bottom'] expected: FAIL - [Property alignment-baseline value 'bottom'] - expected: FAIL - [Property alignment-baseline value 'ideographic'] expected: FAIL [Property alignment-baseline value 'mathematical'] expected: FAIL - [Property alignment-baseline value 'top'] - expected: FAIL - [Property alignment-baseline value 'alphabetic'] expected: FAIL diff --git a/testing/web-platform/meta/css/css-inline/parsing/alignment-baseline-valid.html.ini b/testing/web-platform/meta/css/css-inline/parsing/alignment-baseline-valid.html.ini @@ -2,18 +2,12 @@ [e.style['alignment-baseline'\] = "baseline" should set the property value] expected: FAIL - [e.style['alignment-baseline'\] = "bottom" should set the property value] - expected: FAIL - [e.style['alignment-baseline'\] = "central" should set the property value] expected: FAIL [e.style['alignment-baseline'\] = "middle" should set the property value] expected: FAIL - [e.style['alignment-baseline'\] = "center" should set the property value] - expected: FAIL - [e.style['alignment-baseline'\] = "mathematical" should set the property value] expected: FAIL @@ -29,6 +23,3 @@ [e.style['alignment-baseline'\] = "alphabetic" should set the property value] expected: FAIL - [e.style['alignment-baseline'\] = "top" should set the property value] - expected: FAIL - diff --git a/testing/web-platform/meta/css/css-inline/parsing/baseline-shift-computed.html.ini b/testing/web-platform/meta/css/css-inline/parsing/baseline-shift-computed.html.ini @@ -14,3 +14,11 @@ [Property baseline-shift value '20%'] expected: FAIL + [Property baseline-shift value 'bottom'] + expected: FAIL + + [Property baseline-shift value 'center'] + expected: FAIL + + [Property baseline-shift value 'top'] + expected: FAIL diff --git a/testing/web-platform/meta/css/css-inline/parsing/baseline-shift-valid.html.ini b/testing/web-platform/meta/css/css-inline/parsing/baseline-shift-valid.html.ini @@ -18,3 +18,12 @@ [e.style['baseline-shift'\] = "20%" should set the property value] expected: FAIL + + [e.style['baseline-shift'\] = "bottom" should set the property value] + expected: FAIL + + [e.style['baseline-shift'\] = "center" should set the property value] + expected: FAIL + + [e.style['baseline-shift'\] = "top" should set the property value] + expected: FAIL diff --git a/testing/web-platform/tests/css/css-inline/parsing/alignment-baseline-computed.html b/testing/web-platform/tests/css/css-inline/parsing/alignment-baseline-computed.html @@ -21,9 +21,6 @@ test_computed_value("alignment-baseline", "middle"); test_computed_value("alignment-baseline", "central"); test_computed_value("alignment-baseline", "mathematical"); test_computed_value("alignment-baseline", "text-top"); -test_computed_value("alignment-baseline", "bottom"); -test_computed_value("alignment-baseline", "center"); -test_computed_value("alignment-baseline", "top"); </script> </body> </html> diff --git a/testing/web-platform/tests/css/css-inline/parsing/alignment-baseline-invalid.html b/testing/web-platform/tests/css/css-inline/parsing/alignment-baseline-invalid.html @@ -17,6 +17,12 @@ test_invalid_value("alignment-baseline", "auto"); test_invalid_value("alignment-baseline", "none"); test_invalid_value("alignment-baseline", "baseline text-bottom"); + +// These values were moved to `baseline-shift` +// https://github.com/w3c/csswg-drafts/issues/5180 +test_invalid_value("alignment-baseline", "top"); +test_invalid_value("alignment-baseline", "center"); +test_invalid_value("alignment-baseline", "bottom"); </script> </body> </html> diff --git a/testing/web-platform/tests/css/css-inline/parsing/alignment-baseline-valid.html b/testing/web-platform/tests/css/css-inline/parsing/alignment-baseline-valid.html @@ -19,9 +19,6 @@ test_valid_value("alignment-baseline", "middle"); test_valid_value("alignment-baseline", "central"); test_valid_value("alignment-baseline", "mathematical"); test_valid_value("alignment-baseline", "text-top"); -test_valid_value("alignment-baseline", "bottom"); -test_valid_value("alignment-baseline", "center"); -test_valid_value("alignment-baseline", "top"); </script> </body> </html> diff --git a/testing/web-platform/tests/css/css-inline/parsing/baseline-shift-computed.html b/testing/web-platform/tests/css/css-inline/parsing/baseline-shift-computed.html @@ -23,6 +23,9 @@ test_computed_value("baseline-shift", "calc(10px - 0.5em)", "-10px"); test_computed_value("baseline-shift", "sub"); test_computed_value("baseline-shift", "super"); +test_computed_value("baseline-shift", "bottom"); +test_computed_value("baseline-shift", "center"); +test_computed_value("baseline-shift", "top"); </script> </body> </html> diff --git a/testing/web-platform/tests/css/css-inline/parsing/baseline-shift-valid.html b/testing/web-platform/tests/css/css-inline/parsing/baseline-shift-valid.html @@ -17,6 +17,9 @@ test_valid_value("baseline-shift", "calc(2em + 3ex)"); test_valid_value("baseline-shift", "0", "0px"); test_valid_value("baseline-shift", "sub"); test_valid_value("baseline-shift", "super"); +test_valid_value("baseline-shift", "bottom"); +test_valid_value("baseline-shift", "center"); +test_valid_value("baseline-shift", "top"); </script> </body> </html>