[HN Gopher] Item Flow, Part 1: A new unified concept for layout
___________________________________________________________________
Item Flow, Part 1: A new unified concept for layout
Author : ulrischa
Score : 36 points
Date : 2025-04-02 18:43 UTC (4 hours ago)
(HTM) web link (webkit.org)
(TXT) w3m dump (webkit.org)
| andrewstuart wrote:
| I really wish the CSS designers would drop "shorthand".
|
| CSS is complex enough without giving alternative names to things.
|
| One syntax is enough .
| moritzwarhier wrote:
| I tend to agree, but have softened on this, not only but also
| because of the handy devtools feature to expand them.
|
| I do use them for margin, padding, inset.
|
| Others I dislike a bit, for example I hate the one for
| background whenever things get complex. Others I don't like,
| but have become used to, for example the "flex" shorthand. I
| prefer separate flex-grow, flex-shrink and flex-basis
| properties.
|
| Downside (and sometimes, intended upside!) to all of them is
| how they interact with inheritance and the cascade, i.e.
| accidentally overriding properties. OTOH it can prevent you
| from forgetting to override inherited properties.
|
| Since the properties for which a shorthand exists often are
| closely related, this can be an upside.
|
| The one in the article I still have to digest.
| ericyd wrote:
| I kinda feel like CSS is already feature complete. I know they
| listed things that can't easily be done currently but I'm not
| upset about that.
| andrewstuart wrote:
| That's what Microsoft said about IE6.
| mediumsmart wrote:
| css grid is a _real_ grid. it can do masonry just fine. what they
| want is a shuffle feature.
| 6510 wrote:
| You can put 4 divs side by side in many ways, then jut put
| images in it.
| codeflo wrote:
| Can't wait to learn the three-letter Tailwind names for these
| things!
| moritzwarhier wrote:
| if-bfrw\\[auto\ 24px\\]
|
| see, a full masonry layout using just one CSS class!
___________________________________________________________________
(page generated 2025-04-02 23:01 UTC)