stretch
The stretch CSS keyword expands a box as needed to fit its contents until the maximum size is reached, without preserving the content's preferred aspect ratio.
Status
Limited availability
MDN documentation
Specifications
Browser support
- Chrome 138 Released on 2025-06-24
- Chrome Android 138 Released on 2025-06-24
- Edge 138 Released on 2025-06-26
- Firefox ❌ See bugzil.la/1789477 Vendor position : positive
- Firefox for Android ❌ See bugzil.la/1789477 Vendor position : positive
- Safari ❌ See webkit.org/b/277117 Vendor position : unknown
- Safari on iOS ❌ See webkit.org/b/277117 Vendor position : unknown
Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper votes
Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist