Skip to content

[css-text-decor] How to use decoration skipping to turn off underlines? #2885

Open
@litherum

Description

@litherum

https://drafts.csswg.org/css-text-decor-4/#propdef-text-decoration-skip

During the Sydney F2F, there was an assertion that the text-decoration-skip-* properties can be used to turn off underlining on a particular element. However, I don’t see any value to text-decoration-skip that seems relevant. (The spec hasn’t been updated to break out each of these values into their own properties)

  • none skips nothing, which is the opposite of what I want
  • objects only skips atomic inlines, but I want to turn off the underline on arbitrary content
  • spaces, leading-spaces, and trailing-spaces only skips whitespace, but I want it to skip arbitrary text content
  • edges only insets the underline slightly, rather than skipping over entire elements
  • box-decoration also isn’t what I want

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Monday

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions