postcss / autoprefixer

Parse CSS and add vendor prefixes to rules by Can I Use
https://twitter.com/autoprefixer
MIT License
21.67k stars 1.26k forks source link

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

Open bogdan0083 opened 6 years ago

bogdan0083 commented 6 years ago

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! 🤠

Dan503 commented 6 years ago

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 */
}