tr:nth-of-type(n) {background-color: rgba(0, 0, 0, .i tu n+ poprzednie n)}
o cos takiego
tr:nth-of-type(n) {background-color: rgba(0, 0, 0, .i tu n+ poprzednie n)}
div div{ width:100px; height:100px; background:rgba(0,0,0,calc(1 / (var(--max) - var(--a)))); }