Skip to content

[css-backgrounds-4] Interaction of background-clip: text and text-decoration-color #7394

@smfr

Description

@smfr

css-backgrounds-4 adds background-clip: text and in #900 we resolved that text decorations should be included as part of the text shape.

However, consider:

        .background-clip {
            text-decoration-line: underline;
            text-decoration-color: red;
            background-clip: text;
            color: transparent;
            background-image: linear-gradient(green, blue);
        }

Here the author has explicitly asked for a red underline. Should this be ignored, and the underline just rendered as part of the background-clip? Or should a red underline be drawn on top of the background-clip content?

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