When idle, yes, fuel is consumed.
However, when in gear, like D, something called deceleration fuel-cutoff (DFCO) takes place. From what I observed on my 4AT, at speeds above 45, when you lift your leg off accelerator, the fuel injection cuts-off. Instead, the engine is kept running by momentum from the wheels.
Fuel injection continues when your speed is below 45 in D, when the engine rpm isn't enough to keep the engine running. So normally when stopping, i'd go from D to OD-OFF to 2, then stop. Helps save some fuel.
This is not a very good way to go downslope unless you're planning to stop or you're going too fast, as engine braking is still not as good as coasting in Neutral.
This feature has been in cars since 92, if i'm not wrong.