summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorSébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com>2024-09-02 15:33:43 +0200
committerGitHub <noreply@github.com>2024-09-02 13:33:43 +0000
commit1ccfaba88eac41211a74b334fe0401cc12e72969 (patch)
tree6b57db055546617be7934459f0c053f70abf33af /tests/suite
parent1997db00f3908967dc381d9a84c0b246700e7112 (diff)
Better hint for non-zero em length (#4873)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/layout/length.typ12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/suite/layout/length.typ b/tests/suite/layout/length.typ
index 34a4b939..c40752f7 100644
--- a/tests/suite/layout/length.typ
+++ b/tests/suite/layout/length.typ
@@ -51,20 +51,24 @@
--- length-ignore-em-pt-hint ---
// Error: 2-21 cannot convert a length with non-zero em units (`-6pt + 10.5em`) to pt
-// Hint: 2-21 use `length.abs.pt()` instead to ignore its em component
+// Hint: 2-21 use `length.to-absolute()` to resolve its em component (requires context)
+// Hint: 2-21 or use `length.abs.pt()` instead to ignore its em component
#(10.5em - 6pt).pt()
--- length-ignore-em-cm-hint ---
// Error: 2-12 cannot convert a length with non-zero em units (`3em`) to cm
-// Hint: 2-12 use `length.abs.cm()` instead to ignore its em component
+// Hint: 2-12 use `length.to-absolute()` to resolve its em component (requires context)
+// Hint: 2-12 or use `length.abs.cm()` instead to ignore its em component
#(3em).cm()
--- length-ignore-em-mm-hint ---
// Error: 2-20 cannot convert a length with non-zero em units (`-226.77pt + 93em`) to mm
-// Hint: 2-20 use `length.abs.mm()` instead to ignore its em component
+// Hint: 2-20 use `length.to-absolute()` to resolve its em component (requires context)
+// Hint: 2-20 or use `length.abs.mm()` instead to ignore its em component
#(93em - 80mm).mm()
--- length-ignore-em-inches-hint ---
// Error: 2-24 cannot convert a length with non-zero em units (`432pt + 4.5em`) to inches
-// Hint: 2-24 use `length.abs.inches()` instead to ignore its em component
+// Hint: 2-24 use `length.to-absolute()` to resolve its em component (requires context)
+// Hint: 2-24 or use `length.abs.inches()` instead to ignore its em component
#(4.5em + 6in).inches()