Skip to content

Nested lists with BiDi text rendering dir #35058

Open
@alirezaalavi87

Description

@alirezaalavi87

Description

Rendering a nested list with mixed BiDi content results in wrong rendering.

Why?

Because the attribute dir="auto" is added to every <ul> element. but it should only be added to the top level ul and the rest shouldn't have it.

Screenshots

This is how this text renders:

Image

but by removing dir="auto" from child

    elements, it gets fixed:

    Image

    By "fixed" I mean the hierarchy is readable and usable.

    Gitea Version

    1.23.5

    Can you reproduce the bug on the Gitea demo site?

    Yes

    Operating System

    Arch Linux

    Browser Version

    Firefox developer edition 141

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions