Skip to content

Color of text-decoration shouldn't be changed by children #417

@johnbeard

Description

@johnbeard

From the CSS Level 1 spec: (https://www.w3.org/TR/CSS1/#text-decoration)

This property is not inherited, but elements should match their parent. E.g., if an element is underlined, the line should span the child elements. The color of the underlining will remain the same even if descendant elements have different 'color' values.

For example:

  Before <span style="color:red; text-decoration:underline;">Underlined Red <span style="color:blue;">Blue</span> text</span> After

Should look like this:

Sigil preview

However, in crengine, the text decoration takes the child element's color:

Koreader rendering

EPUB with the above:
text-decoration-color-test.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