You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of Typst 0.9.0 setting clip: true on a box or block should take into account the corner radius of the box or block instead of just clipping to a rectangle. See #2338.
This however doesn't work if the box or block doesn't have stroke set or has stroke set to none.
Description
As of Typst 0.9.0 setting
clip: true
on abox
orblock
should take into account the cornerradius
of thebox
orblock
instead of just clipping to a rectangle. See #2338.This however doesn't work if the
box
orblock
doesn't havestroke
set or hasstroke
set tonone
.This works:
#block( stroke: black, radius: 5pt, width: 20pt, height: 20pt, clip: true, rect(fill: green, width: 100%, height: 100%) )
This doesn't:
#block( radius: 5pt, width: 20pt, height: 20pt, clip: true, rect(fill: green, width: 100%, height: 100%) )
EDIT: It's possible to work around this limitation (as far as I can tell without any side-effects) by manually setting
stroke: 0pt
.Reproduction URL
https://typst.app/project/rwRXVc5tF0Q6QtGL86LE-3
Operating system
Web app
Typst version
The text was updated successfully, but these errors were encountered: