summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/math-equation-tag-affects-row-height.pngbin0 -> 329 bytes
-rw-r--r--tests/suite/math/equation.typ9
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ref/math-equation-tag-affects-row-height.png b/tests/ref/math-equation-tag-affects-row-height.png
new file mode 100644
index 00000000..d0cc2359
--- /dev/null
+++ b/tests/ref/math-equation-tag-affects-row-height.png
Binary files differ
diff --git a/tests/suite/math/equation.typ b/tests/suite/math/equation.typ
index 6cdf7b7e..148a49d0 100644
--- a/tests/suite/math/equation.typ
+++ b/tests/suite/math/equation.typ
@@ -260,6 +260,15 @@ $ q &= sum_k ln A \
// Test numbering on empty equations.
#math.equation(numbering: "1", block: true, [])
+--- math-equation-tag-affects-row-height ---
+// Tags should not affect the row height of equations.
+#box($ - - $, fill: silver)
+#box($ #metadata(none) - - $, fill: silver) \
+#box($ a \ - - $, fill: silver)
+#box($ a \ #metadata(none) - - $, fill: silver)
+#box($ - - \ a $, fill: silver)
+#box($ #metadata(none) - - \ a $, fill: silver)
+
--- issue-4187-alignment-point-affects-row-height ---
// In this bug, a row of "-" only should have a very small height; but
// after adding an alignment point "&", the row gains a larger height.