El atributo de selectores CSS termina con

/*
<div class="" id="" data-attr="background-black">
*/

[data-attr$="-black"] {
  background: #000000;
}
Anxious Albatross