Skip to content

CSS: ideographic and ideographic-ink values for the text-box-edge property #1472

Open

Description

@myakura

Description

The CSS text-box and its longhand subproperties offer trimming excess space above and below the edges specified by the text-box-edge property declaration. The spec defines several values for the text-box-edge to use different typographic metrics including alphabetic, cap, ex, and ideographic/ideographic-ink.

This investigation effort clarify the remaining specification questions in the CSSWG and improve WPT coverage to support interoperable implementations.

Rationale

The ideographic and ideographic-ink values remain a significant interoperability gap; Mozilla shipped them in Firefox 154 along with other values but no other engine follows. WebKit appears to parse these values but does not trim spaces as spec specifies. Blink doesn't implement them; there is an issue filed in the Chromium bug tracker citing w3c/csswg-drafts#10850 noting the spec needs some work.

Authors working with CJK text cannot yet rely on text-box-edge trimming based on ideographic font metrics across browser engines. This is disappointing when the other values of text-box-edge are becoming available across engines.

Investigation Roadmap

Specification:
https://drafts.csswg.org/css-inline-3/#text-box-edge

CSSWG issue regarding ideographic and ideographic-ink values:
w3c/csswg-drafts#10850

web-platform-tests:
https://github.com/web-platform-tests/wpt/tree/master/css/css-inline/text-box-trim covers some basic tests for those two values but I'm not sure if they are enough. Also I don't think they cover the cases in the CSS issue above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigation-effort-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions