Skip to content

[css-text-decor] Consider adding an all value to text-decoration-skip-ink #4277

@jfkthame

Description

@jfkthame

With text-decoration-skip-ink: auto, ink-skipping is applied to most content, but not to CJK text. This makes sense for common fonts, where the default underline position, designed to work with Latin glyphs, clashes with so many CJK glyphs that skip-ink behavior largely destroys underlining.

This means, however, that it is impossible for an author to specify that they actually do want skip-ink behavior to be used with CJK text. This might be desired in cases where the underline position (either specified by the font, or explicitly controlled by the author using text-underline-offset) is such that it does not clash with most glyphs, but only with occasional exceptionally-deep shapes. With more calligraphic font styles, in particular, the glyphs may not all sit solidly on the same baseline as tends to be the case in square printed styles.

I propose there should be an all value (or always, or other name to be bikeshedded) for text-decoration-skip-ink. The initial value would remain auto, so that the browser will do “the right thing” by default, but all makes it possible for the author to opt in to ink-skipping behavior even for CJK glyphs where auto would disable it.

See the right-hand example here, illustrating how skip-ink behavior might reasonably be applied even to CJK text when using a calligraphic font:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions