Skip to content

confusion in ePubCheck 4.2.4 with ERROR(HTM-046) when checking viewport in fxl vs rfl epub #1214

Closed

Description

@JackieFei

Test case :

  • the viewport (height or width) without proper value, such as height=705, width=

ePubCheck 4.2.4 :

  • output ERROR(HTM-046) in fixed layout epub
  • but all pass in reflowable epub with itemref properties="rendition:layout-pre-paginated".

Sample 1 :

fxl_without_viewport_width.epub.zip

content.opf

<meta property="rendition:layout">pre-paginated</meta>
<meta property="rendition:spread">landscape</meta>
<meta property="rendition:orientation">auto</meta>

Cover.xhtml

<meta name="viewport" content="height=705, width="/>

epubcheck-4.2.4 :

  • ERROR(HTM-046): Fixed format item has no viewport defined.

Sample 2 :

rfl_without_viewport_width.epub.zip

content.opf

<itemref idref="Cover.xhtml" properties="rendition:layout-pre-paginated rendition:spread-none rendition:page-spread-center"/>

Cover.xhtml

<meta name="viewport" content="height=705, width="/>

epubcheck-4.2.4 is all pass.

  • We think the rfl_without_viewport_width.epub should also output ERROR(HTM-046), or HTM-047 (Html viewport is missing height and/or width.)

reference #419

Activity

  1. rdeltour commented on Mar 9, 2021

    @rdeltour
    Member

    Thanks for the report @JackieFei! It looks like a false-negative indeed (an error should probably be reported).

    I'll try to have a closer look for the next milestone.

  2. self-assigned this
    on Mar 9, 2021
  3. added this to the milestone on Mar 9, 2021
  4. modified the milestones: , v5.0.0 on Nov 12, 2021
  5. modified the milestones: v5.0.0, v5.0.0-beta on Apr 1, 2022
  6. added
    status: in progressThe issue is being implemented by the development team
    and removed on Sep 30, 2022
  7. added a commit that references this issue on Nov 28, 2022
    01a7758
  8. added and removed
    status: in progressThe issue is being implemented by the development team
    on Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: completedWork completed, can be closedtype: false-negativeThis issue is about invalid content being incorrectly accepted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ 换网址