Skip to content

Text indent wrong/unset after floating span #424

@johnbeard

Description

@johnbeard

In the following example, the two "lorem" spans should both have a hanging indent:

  <p style="border:1px solid red; text-indent:-2em; padding-left:4em; ">
	<span style="float:left; margin-left:-2em;">1</span>
        <span style="display:block;">Lorem ipsum...</span>
	<span class="line" style="display:block;">Lorem ipsum...</span>
</p>

E.g. Sigil:
2021-02-26_172137_371x340_screenshot

However, only the second one is working in Koreader/Crengine:
2021-02-26_172211_1071x646_screenshot

Presumably something is "unsetting" the indent because of the float?

Here's the epub:
untitled.epub.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions