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

Html viewport is missing height and/or width in non-fixed layout documents #419

Closed
josteinaj opened this issue Aug 20, 2014 · 1 comment
Closed
Labels
type: bug The issue describes a bug
Milestone

Comments

@josteinaj
Copy link
Contributor

Fixed layout publications require height and/or width to be specified in the content documents meta viewport, which I assume is why an error is thrown

This does not seem to be a requirement for publications that are not fixed layout publications. The tools we use currently generate and validate <meta name="viewport" content="width=device-width" />. Could the HTM_047 ("Html viewport is missing height and/or width.") validation throw a warning instead of an error if the content document is not a fixed layout document?

(I'm using 4.0.0-alpha9-SNAPSHOT)

@madevelopers
Copy link

I also created a fixed layout epub recently and one of the html files has the following viewport declaration <meta name="viewport" content="width= ,height= ">. This causes the book to shrink when loaded on Kobo for Android. The issue is not present on iBooks and Kobo for iOS. I know this is somewhat off-topic, but I think it would be helpful to have a Warning message for this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue describes a bug
Projects
None yet
Development

No branches or pull requests

3 participants