Closed Bug 1176790 Opened 9 years ago Closed 8 years ago

[css-grid] Implement "Collapsed Grid Items: the 'visibility' property"

Categories

(Core :: Layout, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: MatsPalmgren_bugz, Unassigned)

References

(Blocks 1 open bug)

Details

http://dev.w3.org/csswg/css-grid/#visibility-collapse

(there is no spec text there yet - just filing this for completeness)
I briefly tested this and it's already working (the same way as
for blocks).  The question is if we should do something special for
visibility:collapse as the spec suggests.

It might be useful to do the same as we do for some table elements:
treat them as having [min-]width:0;height:0 such that they don't
contribute to track sizing (but still occupy slots in the grid).
(And without painting, same as visibility:hidden, of course)

Thoughts?
That should also imply that we don't stretch such items, which would
be a performance win compared to visibility:hidden.
Severity: normal → enhancement
visibility:collapse was removed from the Grid spec here:
https://hg.csswg.org/drafts/rev/52793c863ab0

We can open a new bug if it's re-introduced in the future.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.