Skip to content

[css-text-decor] Add some sort of z-index value to text-decoration #6235

@vasilisvg

Description

@vasilisvg

Recently I played around with some new text-decoration properties like text-decoration-thickness. I noticed that you cannot control whether the line is placed on top of the text, or behind the text. This is relevant with larger values for text-decoration-thickness, like 1em in combination with text-decoration-line values of line-through and overline.

I made an example that illustrates the issue.

In this example, in the second and third paragraphs the text-decorations are placed on top of the text, which makes it unreadable. A property to place these text-decorations behind the text would open up a new trove of creative possibilities.

I couldn’t find any reference to this problem in the spec, or in the github issues, hence this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions