Some additional context for folks: - `vertical-align` currently (in all browsers) doesn't map to any other properties, it supports a bunch of keywords, *or* a <length> for adjusting position within a line-box as well as some historical alignment within a table-cell.
- The css-inline-3 spec addresses some additional use-cases via. mapping `vertical-align` onto three properties (`baseline-shift`, `alignment-baseline`, and `baseline-source`). Specifically this creates some additional capability being able to specify `vertical-align: text-top 10px` for example which isn't supported at the moment. There is a (very) small compat risk here. - Two of these properties already exist today (and this intent would ship the third). The first part of the complexity here is that `baseline-shift`, `alignment-baseline` *only* work on SVG elements today, and `vertical-align` doesn't. A (very) small compat risk exists that `vertical-align` would start working for some SVG elements, and the `baseline-shift`, `alignment-baseline` properties would start working on other elements as well (2nd part of compat risk here). - To support this there is a lot of subtle work involved in supporting these properties within the inline code, (and arguably table code), it isn't a "simple" mapping `vertical-align` onto these new properties. Lots of work needs to be done, lots of tests, etc, we'd like to do this as a separate phase/project. - Shipping the `baseline-source` property separately (this intent) doesn't increase/decrease forwards compat risk in a material way - specifying it would "win" over anything specified in `vertical-align` once we support that mapping, and addresses a large web developer concern. Ian On Thu, Jan 12, 2023 at 1:28 PM Ian Kilpatrick <ikilpatr...@google.com> wrote: > > > On Thu, Jan 12, 2023 at 1:24 PM fantasai <fantasai.li...@inkedblade.net> > wrote: > >> On 1/9/23 13:24, Ian Kilpatrick wrote: >> >> Contact emails ikilpatr...@chromium.org >> >> Explainer None >> >> Specification https://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. >> ... >> >> >> This property is a longhand of `vertical-align`, alongside >> `baseline-shift` and `alignment-baseline`. Are you planning to ship this >> set together? (It's probably fine to drop newer values from the other >> longhands, but their relationships should be implemented correctly, imho.) >> >> ~fantasai >> > > No just the baseline-source longhand for the moment - there is additional > complexity/risks with the vertical-align mapping that we'd like to analyze > separately. > > Ian > -- 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/CAJL3UpQY%2B10SFOdXvwKQNZijBQBn_%3D7ArgmB8P71PULEr58Ogw%40mail.gmail.com.
smime.p7s
Description: S/MIME Cryptographic Signature