If one wants to do a "Masonry" layout, what's wrong with calculating it via JavaScript?
There is no reasonable fallback when JS is not present or hasn't yet executed, and that's not acceptable. I can't stress enough how important this is for content experiences. Your content must display reasonably before all bells and whistles load, and when the bells and whistles load, your content had better not shift dramatically (ideally not at all).
Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
51–60 of 359 posts
Re: Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
#52If the designers of Unix had seen the light of CSS, they wouldn’t have bothered with shells and file descriptors and C and Awk and all that composable flotsam. They’d just created a single program, call it the “Central Software System”, and defined thousands of properties that let you control its state machine to produce the output you need. Presto! The perfect computer. If for some reason someone needs a new kind of…
Also as mentioned in the linked article the masonry layout is already possible with JS, no decades-long committee process needed. It's just about standardizing something frequently used.
Re: Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
#53The last image has it turned off.
Re: Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
#54> This layout creates uniformly-sized columns, without any rows I find it amusing that they've decided to refer to this as masonry layout. If you actually built a wall like this (as opposed to uniformly-sized rows , without any columns ) it would be a structural engineering disaster.
But I agree that it's not a good adjective because I had the exact same first thought. Both "natural" and "stonewall" would be better, and they're not great names either.
[0]https://duckduckgo.com/?q=natural%20stone%20walls&ko=-1&iax=...
Re: Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
#55If the designers of Unix had seen the light of CSS, they wouldn’t have bothered with shells and file descriptors and C and Awk and all that composable flotsam. They’d just created a single program, call it the “Central Software System”, and defined thousands of properties that let you control its state machine to produce the output you need. Presto! The perfect computer. If for some reason someone needs a new kind of…
Re: Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
#56> This layout creates uniformly-sized columns, without any rows I find it amusing that they've decided to refer to this as masonry layout. If you actually built a wall like this (as opposed to uniformly-sized rows , without any columns ) it would be a structural engineering disaster.
Re: Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
#57Re: Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
#58Earlier quoted context omitted.
There is no reasonable fallback when JS is not present or hasn't yet executed, and that's not acceptable. I can't stress enough how important this is for content experiences. Your content must display reasonably before all bells and whistles load, and when the bells and whistles load, your content had better not shift dramatically (ideally not at all).
I would expect most browsers that aren't running JS do not properly handle state of the art CSS extensions.
This is where a proper solution to this problem shines: After all, when you are on mobile (at least 60% of your users), they will get a single column anyway. Any solution that doesn't solve for them is a nonstarter.
That being said, it is the slow loading of JS and the folks using truly modern browsers with JS turned off that are more common, and for those people this isn't a problem.
Re: Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
#59> This layout creates uniformly-sized columns, without any rows I find it amusing that they've decided to refer to this as masonry layout. If you actually built a wall like this (as opposed to uniformly-sized rows , without any columns ) it would be a structural engineering disaster.
I think, in structural engineering terms, it refers to old natural stone wall [0] construction methods. Some bridges around me are made like this, and they're over a thousand years old. But I agree that it's not a good adjective because I had the exact same first thought. Both "natural" and "stonewall" would be better, and they're not great names either. [0] https://duckduckgo.com/?q=natural%20stone%20walls&ko=-1&iax…
Re: Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout
#60If the designers of Unix had seen the light of CSS, they wouldn’t have bothered with shells and file descriptors and C and Awk and all that composable flotsam. They’d just created a single program, call it the “Central Software System”, and defined thousands of properties that let you control its state machine to produce the output you need. Presto! The perfect computer. If for some reason someone needs a new kind of…
It’s almost - almost! - as if the designers of Unix and of CSS work in completely different scenarios and with completely different constraints! Almost!
It’s incomprehensible to visual designers, incomprehensible to programmers, and incomprehensible to document authors.
On the upside, it provides a massive moat of sunk cost and implicit implementation dependency around Chromium, so at least there’s that.