mia,
@mia@front-end.social avatar

Blink & Webkit both have beta support for align-content on block layouts (no grid/flex required):

https://codepen.io/miriamsuzanne/pen/VwNYxLV?editors=1100

Blink also has self-alignment/justification of absolutely positioned elements:

https://codepen.io/miriamsuzanne/pen/gOybzmO?editors=1100

(see Chrome/etc 123 & Safari TP 17.4)

css, (edited )
@css@front-end.social avatar

@mia did someone already wrote something explaining how the alignment should work when used within a block formatting context or inline formatting context? like it should align the line boxes, etc, etc (I couldn't find where in the Spec)

I can already imagine people struggling because "it doesn't work" like they want. Considering that it's align-content and not align-items (here as well many don't make the difference).

css,
@css@front-end.social avatar

@mia I suspect that this example: https://codepen.io/t_afif/pen/JjVoxJj will get repeated a lot: "Why the text is not vertically aligned with the image"

You know why and I know why but for many people we need an explanation.

mia,
@mia@front-end.social avatar

@css I don't know if there have been good explainer articles about this, but it is defined in the spec. See…

It would be great to have more people teaching how it all works!

(Sad that it's still rolling out a bit at a time. That makes it harder to teach the whole system.)

css, (edited )
@css@front-end.social avatar

@mia actually, it's easier than what I was thinking 😅

I had the impression that we are going to align the line-boxes and we can have fancy alignment using space-around and co but in the end all the content is consider as a unit.

Still not trivial for everyone but at least we only have to explain the "as a unit" part

mia,
@mia@front-end.social avatar

@css Oh yeah, even with everything implemented, it's still only a block-level thing. No distribution of individual line-boxes or inline-level content.

Chris,
@Chris@mastodon.social avatar

@mia CSS is awesome

  • All
  • Subscribed
  • Moderated
  • Favorites
  • CSS
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • megavids
  • lostlight
  • All magazines