<!DOCTYPE html> <html> <head> <title>margin-trim: flex-inline-start-trimmed-only</title> <link rel="author" href="mailto:sammy.gill@apple.com"> <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex"> <meta name="assert" content="inline-start should trim only inline-start margin of flex items"> <style> flexbox { display: flex; width: min-content; border: 1px black solid; gap: 20px; } item { display: block; background-color: green; width: 50px; height: 50px; margin-block: 10px; } item:last-child { margin-inline-end: 10px; } </style> </head> <body> <flexbox> <item></item> <item></item> <item></item> </flexbox> </body> </html>