Skip to content

Images has wrong css width percent when exported to html #7095

@AzurIce

Description

@AzurIce

Description

using 0.14.0-rc.1

For example:

#image("xxx.jpg", width: 25%)
#image("xxx.jpg", width: 2500%)

produces:

<img src="..." style="width: 0.25%">
<img src="..." style="width: 25%">

Reproduction URL

No response

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghtmlRelated to HTML export

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions