width: max-content;

Hi, I found a bug in the work of safari. In css you can use the property width: max-content; to stretch the block to the full width of the content.

In other browsers, everything works fine, immediately the last word is always wrapped on the next line.

If anyone knows the reason for this behavior, please provide an answer. If not, then I guess it's a bug.


Posted on Jul 5, 2021 12:28 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

width: max-content;

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.