Skip to content

Commit 2fa8407

Browse files
jakejackson1claude
andcommitted
Caption the legacy report with what cssMode legacy draws since #633
#633 drops a descendant rule through an inline ancestor under legacy, so .lead em b no longer applies there and "steady" keeps the bold of b. The legacy fixture draws it bold; the caption says so, and the standard fixture changes only in that caption and the line it adds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 9f8565d commit 2fa8407

3 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/Snapshots/ParentRelativeFontReportSnapshot.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function generatePdf()
6464
<p class="caption">h1 at weight 700, its small set smaller and lighter. Standard: the title is bold and "third quarter" regular at 13.3pt. Legacy: both are regular at 16pt, the number replacing the heading's bold without being read, and so are the h2 headings below, at weight 600.</p>
6565

6666
<p class="lead">Revenue grew <strong>twelve percent</strong> over the quarter, and <em>margins held <b>steady</b></em>.</p>
67-
<p class="caption">The lead paragraph is larger and at weight 300; strong and em inside it are bolder, and b in em bolder again. Standard: the paragraph is 10.8pt, "twelve percent" and "margins held" regular at 400, and "steady" bold at 700. Legacy: the paragraph is 9pt and all of it regular.</p>
67+
<p class="caption">The lead paragraph is larger and at weight 300; strong and em inside it are bolder, and b in em bolder again. Standard: the paragraph is 10.8pt, "twelve percent" and "margins held" regular at 400, and "steady" bold at 700. Legacy: the paragraph is 9pt and regular, but for "steady", which keeps the bold of b, as legacy drops the rule for b that goes through em, an inline element.</p>
6868

6969
<h2>Summary</h2>
7070
<p class="caption">The table is at weight 500, its header cells at 700. The total cell is bolder, the notes smaller and lighter. A table nested in a cell is smaller, and its key cells bolder. Standard: the header cells and the total are bold and other cells regular; the notes and the breakdown are 7.5pt, the breakdown's keys bold. Legacy: every cell is regular at 9pt.</p>
13.9 KB
Binary file not shown.
274 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)