Conditional formatting - color scale - formula - relative references

This concerns color scale variant of conditional formatting.
You can have min, [middle], max.
And they can be formulas.
In those formulas, you can reference cells.
Those cell references appear to be absolute and not relative.

I looked at and understand the example at: https://help.libreoffice.org/latest/media/files/scalc/lo/conditionalformatting.ods

In that case, there is one fixed min, middle, max so it makes sense.

But what if you have 3 reference columns of min, middle, max, which vary by row, and in each row you want to apply the color scale to data?

| min | mid | max | data1 | data2 | data3 |
|  1  |  5  |  10 |   2   |   7   |   11  |
|  1  |  50 | 100 |   2   |   7   |   11  |
|  1  |  50 | 100 |   2   |   25  |   70  |
|  50 |  75 | 100 |   2   |   25  |   70  |

For this, the cell references in the formulas of the min, middle, max would have to be relative. Or at least row-relative.

to look like this:

2025_03_22_125926_PC199_soffice.bin_Untitled_1_—_LibreOffice_Calc

Is there a way?

BTW there seems to be no reason to make these references absolute by default. M40 could be relative and $m$40 could be absolute, like usual. Most (all?) of the conditional formatting already works that way.

I apologize that this is a “quick take;” maybe you’ve got this already, but your comment

makes me wonder.
~
Conditional formatting formulas are sort-of relative. They are based on the “chess move” as it would happen from the upper left cell of the region that is conditionally formatted for that entry in the conditional format range table.
~
One way to think of this is that a cell reference in a conditional format formula (or “is greater to”, etc.) will act as the upper left corner of a shadow of the formatted range.

~
So, a conditional format formula of “greater than” A1 for the conditionally formatted range C5:E10 would compare C5 to A1, then C6 to A2,…, E10 to C6. Notice here that the conditional format range overlaps its “shadow”, which is all sorts of weird, but that’s how it works.
~
Playing with the attached ODS might provide clarification, if it were needed at all.

ConditionalReferencing.ods (8.4 KB)