Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images with width and height specified causes page overflow #1343

Closed
MurakamiShinyu opened this issue Jun 4, 2024 · 1 comment · Fixed by #1344
Closed

Images with width and height specified causes page overflow #1343

MurakamiShinyu opened this issue Jun 4, 2024 · 1 comment · Fixed by #1344
Assignees
Labels

Comments

@MurakamiShinyu
Copy link
Member

Sample: https://gist.githubusercontent.com/MurakamiShinyu/2d7940481da5d21268410de0a57b2170/raw/sample-1.html

In this sample the image has width and height properties specified, as follows:

img {
    width: 540px;
    height: 400px;
}

Test with Vivliostyle Viewer v2.29.0: https://vivliostyle.github.io/viewer/v2.29.0/#src=https://gist.githubusercontent.com/MurakamiShinyu/2d7940481da5d21268410de0a57b2170/raw/cbb03b4a7debc07eaca4db93fa45c6d00f223c30/sample-1.html

Result screenshot:

Screenshot 2024-06-04 13 44 47

Page overflow happens.

This issue does not occur if image height is auto. (with img { height: auto; })

Screenshot 2024-06-04 13 53 28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant