From 72b60dfde751b4a2ab279aa1fcfa559b4a75eb51 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 13 Feb 2023 12:04:26 +0100 Subject: Fill and stroke properties for containers --- tests/typ/compiler/show-selector.typ | 9 ++++----- tests/typ/compiler/show-text.typ | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'tests/typ/compiler') 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) --- -- cgit v1.2.3