首页›Robin Rendle›文章

item-flow

Robin Rendle · 2025年3月30日

AI 摘要 AI 生成,可能有误

The WebKit team has proposed a new CSS feature called item-flow, a unified shorthand property intended to replace flex-flow and grid-auto-flow by controlling how items flow, wrap, and pack across both Flexbox and Grid layouts. The author is enthusiastic about the idea, comparing its simplifying potential to how the gap property was extended across multiple layout systems. They also argue that item-flow shows both sides of the masonry layout debate were wrong, since it elegantly consolidates existing CSS layout complexity rather than bolting masonry onto flawed systems.

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

AI 摘要The article discusses Katherine Rundell's essay on why adults should read children's books, highlighting her quotation of Frances Spufford about the inherent power and danger of storytelling. Rundell argues that real fairytales are driven by hunger, contrasting the original Cinderella with Disney's passive version that lacks agency. The author connects this to their own childhood experience of devouring Animorphs books, noting they are still chasing that same fierce, transformative hunger for stories nearly thirty years later.

The Notebook

AI 摘要After receiving a box of embarrassing journals from his early twenties, the author finds a gentler perspective through Roland Allen's 'The Notebook: A History of Thinking on Paper,' which shows that recording quotes, sketches, and musings is part of an ancient tradition, exemplified by Dutch students' album amicorum in 1575. He realizes that journaling—and even blogging—is a centuries-old practice of curiosity and self-improvement practiced by sailors, da Vinci, and Venetian merchants alike. Ultimately, he concludes that people across the ages are fundamentally the same, all eager to record and share the things they love, 'Fight Club' included.

Small things like these

AI 摘要The article is an enthusiastic, spoiler-free recommendation of Claire Keegan's novella 'Small things like these', praising its sweet, triumphant, and satisfying ending that will stay with the reader. The author describes Keegan's writing as clear and precise, and quotes her explaining that she aims to work on the level of suggestion by removing traces of her labours and trusting the reader's intelligence.

Cybernetics and Ghosts

AI 摘要The article reflects on Italo Calvino's 1967 lecture 'Cybernetics and Ghosts,' in which Calvino envisioned machines capable of writing poetry and novels and found comfort in the idea of literature being reduced to finite, systematic operations. The author admits to bristling at this reduction of the mysterious craft of novel-making and feeling a need to defend the humanities. Ultimately, however, Calvino offers a hopeful twist: machines could expose literature's rules so that writers can see them clearly, break them, and create something entirely new.

The day of small things

AI 摘要At SFO, the author encounters an exhibit called Indoor Eden: Victorian Jardinières, featuring an 1870 quote from Shirley Hibberd's gardening book urging readers not to despise 'the day of small things.' Though impressed by the craftsmanship of the Victorian art nouveau pottery, the author humorously vents about how profoundly ugly the pieces are, arguing that effort doesn't make something good. They conclude by jokingly rejecting Hibberd's gentle advice about making small improvements, grumpily insisting that small, ugly things should be unacceptable and fixed with dramatic, life-changing overhauls instead.