diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-13 12:04:26 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-13 12:18:34 +0100 |
| commit | 72b60dfde751b4a2ab279aa1fcfa559b4a75eb51 (patch) | |
| tree | 013065649ef0972bd342ad5c5821842a9c48c740 /tests/typ/compiler | |
| parent | db49b628f73d3c328aacadbb9126616e7cccfc49 (diff) | |
Fill and stroke properties for containers
Diffstat (limited to 'tests/typ/compiler')
| -rw-r--r-- | tests/typ/compiler/show-selector.typ | 9 | ||||
| -rw-r--r-- | tests/typ/compiler/show-text.typ | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/tests/typ/compiler/show-selector.typ b/tests/typ/compiler/show-selector.typ index ebd84837..d1229eee 100644 --- a/tests/typ/compiler/show-selector.typ +++ b/tests/typ/compiler/show-selector.typ @@ -2,16 +2,15 @@ --- // Inline code. -#show raw.where(block: false): it => box(rect( +#show raw.where(block: false): box.with( radius: 2pt, - outset: (y: 3pt), + outset: (y: 2.5pt), inset: (x: 3pt, y: 0pt), fill: luma(230), - it, -)) +) // Code blocks. -#show raw.where(block: true): rect.with( +#show raw.where(block: true): block.with( outset: -3pt, inset: 11pt, fill: luma(230), diff --git a/tests/typ/compiler/show-text.typ b/tests/typ/compiler/show-text.typ index e0fdb793..705c1112 100644 --- a/tests/typ/compiler/show-text.typ +++ b/tests/typ/compiler/show-text.typ @@ -28,7 +28,7 @@ Treeworld, the World of worlds, is a world. --- // This is a fun one. #set par(justify: true) -#show regex("\S"): letter => box(rect(inset: 2pt, upper(letter))) +#show regex("\S"): letter => box(stroke: 1pt, inset: 2pt, upper(letter)) #lorem(5) --- |
