Consider two topological spaces $(X,\tau)$ and $(Y,\omega)$ and a continuous surjective function $f\colon X\to Y$.
Let $\mathrm{dim}(X)$ and $\mathrm{dim}(Y)$ denote the Lebesgue covering dimension of $X$ and $Y$ respectively.
It is clear that the covering dimension is a topological invariant, in other words if $f$ is also injective with continuous inverse, then $\mathrm{dim}(X) = \mathrm{dim}(Y)$.
However, I am interested in the case when $f$ is only surjective but not injective. Is there some other property of $f$ from which I can conclude that the topological dimension is at least not increased, i.e. $\mathrm{dim}(Y) \leq \mathrm{dim}(X)$. It will be necessary to exclude cases like space-filling curves. I was thinking about something like openess of $f$ but was not able to find such a result anywhere.
Any hints on necessary or sufficient conditions on $f$ would be welcome. Also, if it helps $X$ and $Y$ can be assumed as ''nice'' as necessary (e.g. metrizable, separable, normal, or even as subspaces of Euclidean spaces).