Skip to content

support more css properties in epub #5826

Description

@hluica

Is your feature request related to a problem? Please describe.
I hope the Epub parser or renderer can support more CSS properties, as there are currently serious issues with the support for many CSS properties.

The properties that have been tested and found to be unsupported or insufficiently supported include:

  • CSS variables
  • font-family with multiple font names, which seems to only support the first font
  • Recognition of font-style, may be related to the font
  • The color and text-decoration properties on the a tag
  • Many selector combinators (not thoroughly tested)
  • block-size, inline-size and vertical-align on the img tag
  • CSS grid do not take effect
  • text-wrap
  • float: inline

Describe the solution you'd like
Please consider optimizing the epub parser and renderer. Or, if conditions permit, replace the epub renderer with one based on a browser engine to ensure all CSS properties are rendered correctly.

Describe alternatives you've considered
No alternatives. What I can only do is to use other ebook viewers.

Additional context
In the zip file attached below are

  • the original epub used to test the above properties,
  • along with the rendering results in the latest Microsoft Edge when the content pages are opened as regular HTML web pages and saved as PDF using the browser,

to demonstrate the significant differences between SumatraPDF and an actual browser's parsing and rendering results.

test-sample-page.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions