Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-grid] New grid-template-columns keyword to hide column cells #11032

Open
woody-li opened this issue Oct 14, 2024 · 0 comments
Open

[css-grid] New grid-template-columns keyword to hide column cells #11032

woody-li opened this issue Oct 14, 2024 · 0 comments
Labels
css-grid-3 Masonry Layout

Comments

@woody-li
Copy link

Currently, for table elements, we have colgroup and col to control column styles.
<col> accepts visibility CSS property to controls column cells not being rendered.

But there's no way to implement the same behavior in grid layout.
We have to hide the cells one by one in a column.

Proposal

A new keyword, such as hidden for grid-template-columns, controls column cells not being rendered.
Such as grid-template-columns: 200px minmax(100px, auto) hidden 50px to hide cells at the third column.

Specification

The grid-template-columns CSS property defines the line names and track sizing functions of the grid columns.

So I think hide and skip column cells render is fit to its function.

Puzzled

I've no idea how to distinguish the behavior between 0 and hidden.

@fantasai fantasai added the css-grid-3 Masonry Layout label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-grid-3 Masonry Layout
Projects
None yet
Development

No branches or pull requests

2 participants