首页›Robin Rendle›文章

item-flow

Robin Rendle · 2025年3月30日

The Webkit team is pitching a new idea called item-flow:

The suggestion isn’t to combine all of Flexbox with all of Grid — but rather to create a new set of properties and values to “replace” specifically the flex-flow and grid-auto-flow properties. (You will always be able to use the older syntax if you prefer.) Think how originally the Alignment properties and the gap property were defined to work only in one layout system, and then later got modified and extended to work in multiple layout contexts.

Several of us here at Apple got together and started figuring out how a such unified system for layout *-flow could work. We decided to tentatively name the shorthand item-flow. It’d be the main property from which the longhands and values follow. Together, the new rules would all control the direction of flow, how items wrap, how items pack, whether or not there’s “slack” in the layout, and more.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Robin Rendle

Why You Should Read Children’s Books

Katherine Rundell’s Why You Should Read Children’s Books leapt towards me in the bookstore yesterday—it’s lovely—and in it, she quotes Frances Spufford in his memoir The Child That Books Built: We cannot be told ‘there once was a prince’ wi

The Notebook

A box stacked to the brim with old journals arrived at my door a couple of weeks ago, having made its way across an ocean and dozens of state lines despite its contents being so radioactively embarrassing that it ought to be considered an i

Small things like these

Claire Keegan’s novella Small things like these is very sweet and the ending is so triumphant and satisfying and punk rock that it’s going to stay with me for a very long time. I leave this rare book recommendation without a quote or much o

Cybernetics and Ghosts

In November 1967 Italo Calvino gave a lecture called Cybernetics and Ghosts where he talked about writing machines and the future of literature: ...will we have a machine capable of replacing the poet and the author? Just as we already have

The day of small things

I spotted this quote by Shirley Hibberd on the side of an enormous glass case, just outside the departures gate at SFO: Let us not despise the day of small things. A windowsill garden is better than no garden, and the dark area where cats q