- From: Óscar Otero via GitHub <sysbot+gh@w3.org>
- Date: Tue, 08 Oct 2024 17:33:42 +0000
- To: public-css-archive@w3.org
@essenmitsosse > I think the concept of a website, that runs without JavaScript is basically dead by now. I think it's the opposite. Most of the stuff that needed JavaScript in the past (like animations, scroll snap, anchor position, etc) can now be achieved with pure CSS (unless you want to translate all these features to JavaScript again, which is what I understand in your latest comment 😛). > experienced front-end developers already complain about the complexity and convolutedness of flex and grid. I don't think `flex` and `grid` are harder than creating a responsive layout with all elements with position absolute and placing them using JavaScript. > I can't think of many systems that have improved by continuously adding more specialized features while neglecting versatile, general-purpose tools. CSS is an advanced language, with a lot of features. Selectors can be very powerful. Properties like color manipulation, 2D/3D transformation, animations, open type features, variables, math functions, etc make CSS the most advanced language ever created to build interfaces. All these features are general-purpose. You can combine them and create infinite designs. Grids and flex are properties that distribute elements over a surface. They were designed to be the most flexible as possible. Grid, for example, allows the build layouts in a declarative way (using named areas, grid-lines, configuring auto-flow, etc), imperatively (using line numbers to place every element over a surface of fixed columns and rows), or a mix of both (probably the best in most cases). Masonry, (that probably should change the name for something more generic to avoid this kind of misinterpretation) is just another way to distribute elements in a surface, similar to grid and flex, but with a different algorithm to open new possibilities that grid and flex don't allow. It's not only to build "Pinterest-like" interfaces (although you can) but there are many other use cases like [magazine-like interfaces](https://camo.githubusercontent.com/4b0198ff88c113167af638500c252e77087bdd3456076c310afeb97edfe1e1ff/68747470733a2f2f7765626b69742e6f72672f77702d636f6e74656e742f75706c6f6164732f696d61676531322d7465787467726964332d6c696768742e706e67), etc. -- GitHub Notification of comment by oscarotero Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10233#issuecomment-2400447450 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 8 October 2024 17:33:43 UTC