autoprefixer icon indicating copy to clipboard operation
autoprefixer copied to clipboard

[css-grid] Inheritance of grid-gap values from similar selectors

Open bogdan0083 opened this issue 7 years ago • 1 comments
trafficstars

Grid gap values should be inherited from the rules with the same selector, but with modifiers placed in a different order.

An example:

.grid.one.two {
  grid-gap: 20px;
  /* other styles */
}

.grid.two.one {
  /* grid gap should inherit from .grid.one.two */
}

The use case is quite small, but it would be cool if we can get this thing implemented! 🤠

bogdan0083 avatar Sep 24 '18 10:09 bogdan0083

You also might want to think about this

.mum.dad .grid.one.two {
  grid-gap: 20px;
  /* other styles */
}

.dad.mum .grid.two.one {
  /* grid gap should inherit from .mum.dad .grid.one.two */
}

Dan503 avatar Sep 24 '18 12:09 Dan503