Contact [email protected] ExplainerNone
Specificationhttps://drafts.csswg.org/css-inline-3/#baseline-source Summary The "baseline-source" properties allows web developers to specify if an inline-level box should use the "first" or "last" baseline for alignment within an linebox. Today the default behaviour is confusing for web developers. Consider: test <div style="display: inline-block;">line1<br>line2</div> test <div style="display: inline-flex;">line1<br>line2</div> The "inline-block" will align to the last baseline, and the "inline-flex" will align to the first baseline. "baseline-source: auto" is the existing (confusing) behaviour. Web developers can specify "baseline-source: first" or "baseline-source: last" to directly determine how they want these boxes to align within a line-box. Blink componentBlink>Layout>Inline <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3ELayout%3EInline> Motivation >From changes to last/first baseline features we've received requests from web developers to have more precise control over which baseline to use for alignment within a line-box. Initial public proposal TAG review TAG review statusNot applicable Risks Interoperability and Compatibility *Gecko*: No signal *WebKit*: No signal *Web developers*: Positive - see motivation above. *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? Debuggability Is this feature fully tested by web-platform-tests <https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md> ?Not yet we'll be adding a full suite of tests in css/css-inline/baseline-source Flag nameCSSBaselineSource Requires code in //chrome?False Tracking bughttps://bugs.chromium.org/p/chromium/issues/detail?id=1399711 Estimated milestones No milestones specified Link to entry on the Chrome Platform Status https://chromestatus.com/feature/5730575560736768 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJL3UpRe9mDOH4EV_-mo_-7NQL1cTZksivfs8X2oRHJ89YX82g%40mail.gmail.com.
