(Sorry, I'm not familiar with it and click the wrong button..) Hi David, Thanks for the comments! My initial plan is to implement the following items as the first step:
- Normal: When applied to an inline box, specifies that the over/under content edges coincide with the text-over/text-under baselines regardless of text-edge (which nonetheless still affects line box sizing). - End, start, and both: For inline boxes: treat all as if text-edge is "text" (it should be "trims the block-end side of the box to match its content edge to the metric specified by text-edge (treating leading as text)." I'm not sure if I would encounter any problems after starting with this status. If anyone foresee the potential risks, I'd appreciate it! On Tuesday, March 7, 2023 at 7:53:00 AM UTC+9 unakr...@google.com wrote: > Hi all, FYI these properties were renamed to `text-box-trim` and > text-box-edge` last week > <https://github.com/w3c/csswg-drafts/issues/8067#issuecomment-1451111081>. > (Spec may not be updated yet) > > On Monday, March 6, 2023 at 4:32:36 PM UTC-5 dba...@chromium.org wrote: > >> Does this also involve implementing the text-edge property (which >> leading-trim depends on)? >> >> It also seems like it may be worth starting a discussion in the CSS >> Working Group about implementation status, given that the spec says "Do not >> implement (yet)". >> >> I also think the summary of the issues WebKit implementors filed >> <https://github.com/w3c/csswg-drafts/issues/8479> was informative. >> >> -David >> >> On Mon, Mar 6, 2023 at 9:59 AM Lingqi Chi <lin...@chromium.org> wrote: >> >>> Contact emails >>> >>> lin...@chromium.org, ko...@chromium.org >>> >> >>> Explainer >>> >>> None >>> >>> Specification >>> >>> https://w3c.github.io/csswg-drafts/css-inline-3/#propdef-leading-trim >>> >>> Summary >>> >>> Specifies whether and how browsers should remove vertical spacings above >>> and below the text content from the first and last lines of block text. >>> This feature allows developers to have precise control over spacing, and >>> ensures font metrics are respected during layout in terms of spacing. >>> >>> >>> Blink component >>> >>> Blink>Layout>Inline >>> <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3ELayout%3EInline> >>> >>> Motivation >>> >>> Developers and designers sometimes find the texts are not visually >>> aligned, as browsers would pad extra spaces to ensure line height without >>> taking the font-reserved space into account. This feature aims to improve >>> this. >>> >>> Initial public proposal >>> >>> https://github.com/w3c/csswg-drafts/issues/3240 >>> >>> TAG review >>> >>> N/A >>> >>> TAG review status >>> >>> Not applicable >>> >>> RisksInteroperability and Compatibility >>> >>> Gecko: No signal >>> >>> WebKit: Preview >>> >>> >>> https://webkit.org/blog/13839/release-notes-for-safari-technology-preview-163/ >>> >>> >>> Web developers: >>> >>> The issue was proposed in 2018[1], and got many responses. >>> >>> [1] https://github.com/w3c/csswg-drafts/issues/3240 >>> >>> Other signals: >>> >>> WebView application risks >>> >>> No. >>> >>> >>> Debuggability >>> >>> Is this feature fully tested by web-platform-tests >>> <https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md> >>> ? >>> >>> No. Will add more. >>> >>> Flag nameCSSLeadingTrimBasic >>> >>> Requires code in //chrome? >>> >>> False >>> >>> Tracking bug >>> >>> https://bugs.chromium.org/p/chromium/issues/detail?id=1411581 >>> >>> Estimated milestones >>> >>> No milestones specified >>> >>> >>> Link to entry on the Chrome Platform Status >>> >>> https://chromestatus.com/feature/5174589850648576 >>> >> -- >>> 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+...@chromium.org. >> >> >>> To view this discussion on the web visit >>> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CA%2B99URLC-V9Zrscj8F%3D%3DkGmnmp0OmNhGB11Uyy%2B-y5ZExSK5MQ%40mail.gmail.com >>> >>> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CA%2B99URLC-V9Zrscj8F%3D%3DkGmnmp0OmNhGB11Uyy%2B-y5ZExSK5MQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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 on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/804553b9-873f-4f34-b2b9-1758a9097b0en%40chromium.org.