[css-flexbox][css-grid] Proposal: make column-rule
work in Flex and Grid layout + add row-rule
and rule
, like for gap
#9482
Labels
Right now, if you want a border/line between Flex items or Grid cells, you need hacks like
* + * { border-top: 1px solid #ccc; }
or more complex to handle multiple rows and columns together. These hacks fall apart very quickly, for instance if the first item hasdisplay: none
. It would be nice to add a property explicitly for this, and there is one that currently works in multi-column layout:column-rule
. Note that the related propertycolumn-gap
already works in Flex and Grid, along withrow-gap
and thegap
shorthand. I propose addingrow-rule
andrule
as well.The text was updated successfully, but these errors were encountered: