Skip to content

Commit 1b81f6f

Browse files
committed
Also fix copying of 'em'
Similar to #23
1 parent 576e5e8 commit 1b81f6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/CSS/Properties.rakumod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,10 @@ The `reference-width` attribute represents the width of a containing element; wh
650650
$obj.copy: $orig, :@properties;
651651
}
652652

653-
multi method copy(::?CLASS:D: ::?CLASS:D $orig, :@properties = [$orig.properties]) {
653+
multi method copy(::?CLASS:D: ::?CLASS:D $orig, :@properties = $orig.properties) {
654654
for @properties {
655+
$!calc.em = $orig.computed($_)
656+
if $_ eq 'font-size';
655657
%!values{$_} = $orig."$_"()
656658
if $.property-number($_).defined;
657659
}

0 commit comments

Comments
 (0)