oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/ink/box_clip.typ
508 bytes, 1 run
created by r1870400018:65152, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | // A box with `clip: true` cuts its body to its own frame, inside its stroke; the stroke is drawn. |
| 2 | #set page(width: 300pt, height: 160pt, margin: 25pt) |
| 3 | Before #box(width: 2cm, height: 1cm, clip: true, stroke: 1pt)[#rect(width: 4cm, height: 2cm, fill: orange)] after. |
| 4 | |
| 5 | #box(width: 2cm, height: 1cm, clip: true, radius: 8pt, stroke: 2pt + blue)[#rect(width: 4cm, height: 2cm, fill: orange)] |
| 6 | #box(width: 1.5cm, height: 1cm, clip: true, outset: 4pt, fill: luma(230))[#rect(width: 3cm, height: 2cm, fill: green)] |