Skip to content

[css-text-decor] text-decoration level 4 clarification on text-underline-offset positive/negative lengths #4021

@charliemarlow

Description

@charliemarlow

For text-underline-offset at https://drafts.csswg.org/css-text-decor-4/#underline-offset, it says that "Positive lengths represent inward distances; negative lengths outward". This seems to suggest that a positive length would move the underline up, intersecting with the text that it is underlining and eventually sitting "above" the text like an overline. A negative length, however, would travel "down" the page. Is this the correct way to interpret that section of the spec?

In Safari Technology Preview 70, text-underline-offset has been implemented, but positive values move the text downwards on the page away from the underlined text. Negative values have the same effect as setting text-underline-offset to 0.

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