Magic wand selection or Select by Colour Range not working correctly when transparency is involved
Making selections on a transparent layer, where opacity gradient is involved, around the edge of the transparency, does not function correctly.
Repeatable scenario:
This works exactly the same in version 26.11.3, and version 27 (not sure which specific version).
Set up a document in RGB, 8bit colour, so that you have a single layer that is fully transparent. Select the paintbrush tool and make sure you have a really soft standard brush selected. Draw any shape.

You should now have a nice soft edged shape, with a gradient transparency from opaque to transparent. Now select either the magic wand tool, or the Select → Colour Range tools and try to make a selection of the colour you have painted. What you will observe is that no matter what your settings for the magic wand, or the Select → Colour Range, you will always see that the selection made always covers any pixel that has any amount of the colour you painted at 100% selection, even if the pixel is only 1% colour filled and 99% transparent.
Magic wand selection below:


For clarity, I even tried with many settings of both magic wand and Colour Range tool, but the results are always the same, when transparency is involved.
It is worth noting that this ONLY occurs when transparency is involved on the layer being selected, in the area that is being selected.
I also tried making the selections, and then filling the resulting selection on a new layer, and the resulting fill has a 100% hard edge, with zero edge gradient.
I hope this helps to identify the bug and get it resolved.
Bill
