summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mathml/presentation-markup/operators/stretchy-largeop-with-default-font-2.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/mathml/presentation-markup/operators/stretchy-largeop-with-default-font-2.html')
-rw-r--r--testing/web-platform/tests/mathml/presentation-markup/operators/stretchy-largeop-with-default-font-2.html9
1 files changed, 6 insertions, 3 deletions
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.");