From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/mathml/WEB_FEATURES.yml | 3 ++ ...ical-adjustment-for-basic-binary-operators.html | 39 ++++++++++++++++++++++ .../stretchy-largeop-with-default-font-2.html | 9 +++-- .../relations/css-styling/table-width-1-ref.xhtml | 4 +-- .../relations/css-styling/table-width-1.xhtml | 4 +-- 5 files changed, 52 insertions(+), 7 deletions(-) create mode 100644 testing/web-platform/tests/mathml/WEB_FEATURES.yml create mode 100644 testing/web-platform/tests/mathml/presentation-markup/operators/mo-no-vertical-adjustment-for-basic-binary-operators.html (limited to 'testing/web-platform/tests/mathml') diff --git a/testing/web-platform/tests/mathml/WEB_FEATURES.yml b/testing/web-platform/tests/mathml/WEB_FEATURES.yml new file mode 100644 index 0000000000..4d03bc3eb4 --- /dev/null +++ b/testing/web-platform/tests/mathml/WEB_FEATURES.yml @@ -0,0 +1,3 @@ +features: +- name: mathml + files: "**" diff --git a/testing/web-platform/tests/mathml/presentation-markup/operators/mo-no-vertical-adjustment-for-basic-binary-operators.html b/testing/web-platform/tests/mathml/presentation-markup/operators/mo-no-vertical-adjustment-for-basic-binary-operators.html new file mode 100644 index 0000000000..a318a71ce5 --- /dev/null +++ b/testing/web-platform/tests/mathml/presentation-markup/operators/mo-no-vertical-adjustment-for-basic-binary-operators.html @@ -0,0 +1,39 @@ + + +No vertical adjustment for basic binary operators + + + + + + + + + + +=*× + + diff --git a/testing/web-platform/tests/mathml/presentation-markup/operators/stretchy-largeop-with-default-font-2.html b/testing/web-platform/tests/mathml/presentation-markup/operators/stretchy-largeop-with-default-font-2.html index 7c43c80acc..83f160a54e 100644 --- a/testing/web-platform/tests/mathml/presentation-markup/operators/stretchy-largeop-with-default-font-2.html +++ b/testing/web-platform/tests/mathml/presentation-markup/operators/stretchy-largeop-with-default-font-2.html @@ -11,8 +11,8 @@ function contentOf(aElement) { return document.getElementById(aElement).textContent; } - function heightOf(aElement) { - return document.getElementById(aElement).getBoundingClientRect().height; + function boxOf(aElement) { + return document.getElementById(aElement).getBoundingClientRect(); } promise_test(() => { return new Promise(resolve => { @@ -21,7 +21,10 @@ const numTests = 10; // zero indexed for (let i = 0; i < numTests; i++) { const operatorName = contentOf(`mo${i}`); - assert_greater_than(heightOf(`mo${i}`), heightOf(`moRef${i}`), `size of largeop '${operatorName}'`); + const box = boxOf(`mo${i}`); + const ref = boxOf(`moRef${i}`); + assert_greater_than(box.width, ref.width, `width of largeop '${operatorName}'`); + assert_greater_than(box.height, ref.height, `height of largeop '${operatorName}'`); } }); }, "Test that non-stretchy largeops are bigger in display mode."); diff --git a/testing/web-platform/tests/mathml/relations/css-styling/table-width-1-ref.xhtml b/testing/web-platform/tests/mathml/relations/css-styling/table-width-1-ref.xhtml index d76a350290..7653cacb1c 100644 --- a/testing/web-platform/tests/mathml/relations/css-styling/table-width-1-ref.xhtml +++ b/testing/web-platform/tests/mathml/relations/css-styling/table-width-1-ref.xhtml @@ -3,8 +3,8 @@