Replies: 2 comments 5 replies
-
Currently only Firefox supports |
Beta Was this translation helpful? Give feedback.
-
Hello, it was recently announced that Safari 18 would support the safe keyword (https://developer.apple.com/documentation/safari-release-notes/safari-18-release-notes#CSS), so it seems like a good idea to revisit the issue. Support in other browsers is pretty good as well (https://caniuse.com/mdn-css_properties_align-self_flex_context_safe_unsafe). The safe keyword should avoid cutting off content in flex children by accident. I created two examples to illustrate the issue: Additional links Cheers Edit: There is also another post on this topic: #12916 |
Beta Was this translation helpful? Give feedback.
-
Hi,
Browsers support very useful features for flexbox and grid alignment, with the safe and unsafe keyword. Especially for grid this has the same support as for all the other features. The safe alignment allow something to use center alignment but behave as start if the content overflow.
Documentation can be found here: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
It would basically be adding a new "justify-safe-center", "content-safe-center", "items-safe-center", "justify-items-safe-center", "self-safe-center", "justify-self-safe-center".
EDIT: actually those should also be added for all the "space-between" / "space-evenly" / "space-between" which also support the safe keyword.
Beta Was this translation helpful? Give feedback.
All reactions