Skip to content

Commit cfc8efd

Browse files
authored
Add preserveAspectRatio to svg.
1 parent 79c95f1 commit cfc8efd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tink/domspec/Attributes.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ typedef ProgressAttr = {
437437
typedef SvgAttr = {>GlobalAttr<Style>,
438438
@:optional var width(default, never):String;
439439
@:optional var height(default, never):String;
440+
@:optional var preserveAspectRatio(default, never):String;
440441
@:optional var viewBox(default, never):String;// TODO: consider validating constant strings via typedef with @:fromHxx
441442
@:optional var xmlns(default, never):String;// has no effect, but since most svgs come with this set, better to support it I guess
442443
}

0 commit comments

Comments
 (0)