- From: Brandon McConnell via GitHub <sysbot+gh@w3.org>
- Date: Wed, 24 Apr 2024 20:57:16 +0000
- To: public-css-archive@w3.org
> As others have suggested, `masonry` doesn't make sense semantically since bricks etc are laid horizontally fwiw bricks can be laid horizontally **_or_** vertically: | Horizontally | Vertically | |--------|--------| | ![a building with a wall made of horizontally laid bricks](https://github.com/w3c/csswg-drafts/assets/5913254/602672c7-6842-431d-b203-d8c437ef84c2) <sup>Source: https://architizer.com/blog/practice/details/technical-details-setting-out-brickwork/</sup> | ![a building with a wall made of vertically laid bricks](https://github.com/w3c/csswg-drafts/assets/5913254/3427ba5b-acbf-415d-a264-616e2af9dc1b) <sup>Source: https://www.archdaily.com/873185/brick-house-in-brick-garden-jan-proksa</sup> | In the realm of masonry, this is purely done stylistically. The same would apply to CSS: | Horizontally | Vertically | |--------|--------| | ![a layout of horizontally staggered elements](https://github.com/w3c/csswg-drafts/assets/5913254/b592104d-62c9-4b7f-a8a7-e17e6470c422) <sup>Source: https://css-tricks.com/piecing-together-approaches-for-a-css-masonry-layout/</sup> | ![a layout of vertically staggered elements](https://github.com/w3c/csswg-drafts/assets/5913254/c6c6c617-1bb8-47f7-9086-c35c8d9dc05f) <sup>Source: https://css-tricks.com/piecing-together-approaches-for-a-css-masonry-layout/</sup> | If I understand correctly, these would both be supported by the proposed masonry layout: ```css .masonry { display: grid; &.vertical { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-template-rows: masonry; grid-auto-flow: column; } &.horizontal { grid-template-rows: repeat(auto-fill, minmax(200px, 1fr)); grid-template-columns: masonry; grid-auto-flow: row; } } ``` -- GitHub Notification of comment by brandonmcconnell Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9733#issuecomment-2075826673 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 24 April 2024 20:57:17 UTC