mirror of
https://github.com/typst/typst
synced 2025-05-15 09:35:28 +08:00
Fixes #1216 both by hardening the rounded rectangle against negative size and by ensuring that the negative size doesn't occur in the first place for this case.
4 lines
104 B
Typst
4 lines
104 B
Typst
#set page(height: 20pt, margin: 0pt)
|
|
#v(22pt)
|
|
#block(fill: red, width: 100%, height: 10pt, radius: 4pt)
|