Contact emailslin...@chromium.org, ko...@chromium.org

ExplainerNone

Specificationhttps://drafts.csswg.org/css-inline-3/#text-edges

Summary

To achieve optical balance of text content, the text-box-trim and
text-box-edge properties, along with the text-box shorthand property, make
finer control of vertical alignment of text possible. The text-box-trim
property specifies the sides to trim, above or below, and the text-box-edge
property specifies how the edge should be trimmed. These properties allow
developers to control vertical spacing precisely by using the font metrics.
Note that the `ideographic` and `ideographic-ink`, two values for the
text-box-edge property for CJK, are deferred to future releases due to open
issues currently under discussion.


Blink componentBlink>Layout>Inline
<https://issues.chromium.org/issues?q=customfield1222907:%22Blink%3ELayout%3EInline%22>

TAG reviewhttps://github.com/w3ctag/design-reviews/issues/1021
TAG review statusPending

Risks


Interoperability and Compatibility



*Gecko*: No signal (
https://github.com/mozilla/standards-positions/issues/1105)

*WebKit*: In development (
https://github.com/WebKit/standards-positions/issues/432) Available under a
flag, original bug https://bugs.webkit.org/show_bug.cgi?id=245599

*Web developers*: Positive (
https://medium.com/microsoft-design/leading-trim-the-future-of-digital-typesetting-d082d84b202
) https://github.com/markdalgleish/figma-leading-trim

*Other signals*:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that
it has potentially high risk for Android WebView-based applications?

No.


Debuggability



Will this feature be supported on all six Blink platforms (Windows, Mac,
Linux, ChromeOS, Android, and Android WebView)?Yes

Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?Yes

https://wpt.fyi/results/css/css-inline/text-box-trim?label=experimental&label=master&aligned


Flag name on about://flagstext-box-trim

Finch feature nameCSSTextBoxTrim

Requires code in //chrome?False

Tracking bughttps://bugs.chromium.org/p/chromium/issues/detail?id=1411581

Estimated milestones
Shipping on desktop 133
DevTrial on desktop 128
Shipping on Android 133
DevTrial on Android 128
Shipping on WebView 133

Anticipated spec changes

Open questions about a feature may be a source of future web compat or
interop issues. Please list open issues (e.g. links to known github issues
in the project for the feature specification) whose resolution may
introduce web compat/interop risk (e.g., changing to naming or structure of
the API in a non-backward-compatible way).
None.

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5174589850648576?gate=5185376392577024

Links to previous Intent discussionsIntent to Prototype:
https://groups.google.com/a/chromium.org/g/blink-dev/c/Sn8TF5KHrRU


This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHe_1d%2BK92_9kSvObCgk-ShO6iWyvXyvvzR3%2BT9Bh4Wp0u0z1A%40mail.gmail.com.

Reply via email to