When defining the Riemann integral, say of $\int_a^b f(x)dx$ for $f:\mathbb{R}\to \mathbb{R}$ (or a more general setting), we take it as a limit of the sum of shrinking rectangles for example https://en.wikipedia.org/wiki/Riemann_integral . These rectangles are vertical. Is there also a definition taking horizontal rectangles?
For instance would this be an equivalent definition : Let $P_n$ be the a partition of $[a,b]$, i.e $x_1,x_2,x_3,\ldots x_n$, and $|P_n|=\max_{i=1,...,n}|x_{i+1}-x_i|$. Then define as the Riemann integral : $$\int_a^b f(x)dx= \lim_{|P_n|\to 0} \sum_{i=1}^n (f(x_{i+1})-f(x_i)) x_i. $$
Can we also do this for Riemann-Stieltjies integrals? Does anyone have a source?