Skip to content

Commit

Permalink
fix style inheritance on root node
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Aug 28, 2024
1 parent 5262863 commit d17e441
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
10 changes: 0 additions & 10 deletions etc/#resolve-links.raku#

This file was deleted.

6 changes: 4 additions & 2 deletions lib/PDF/Tags/Elem.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,10 @@ multi method reference(PDF::Class::StructItem $Obj, PDF::Page :$Pg!) {
method style {
callsame() //= do {
my $s = $.root.styler.tag-style($!name, |$.attributes);
$s.inherit($_)
with self.parent.?style;
with self.parent {
$s.inherit($_)
with .style;
}
$s;
}
}
Expand Down

0 comments on commit d17e441

Please sign in to comment.