Suppose we have polynomials $f$ and $g$ over a field $F$ and for some $a\in F$ we know $(x-a)^m$ divides $f\circ g$, i.e. $f\circ g$ has a zero of order $m$ at $a$. Then we have that $(x-a)^{m-n}$ divides $(f\circ g)^{(n)}$, the $n$'th derivative of $f\circ g$. Now suppose we know that $g'$ is relatively prime to $x-a$. By the chain rule $(x-a)^{m-1}$ divides $f'\circ g \cdot g'$ and so must divide $f'\circ g$. Inductively, one can show then that $(x-a)^{m-n}$ divides $f^{(n)}\circ g$.
My question is: is there a reasonably simple condition under which this works when $f$ is multivariate? Specifically, if $f(x_1,\ldots,x_l)\in F[x_1,\ldots,x_l]$ and $g_1,\ldots,g_l$ are univariate then what is the order of the zero of $f^{(n_1,\ldots,n_l)}(g_1,\ldots,g_l)$ at $a$ given the order of the zero of $f(g_1,\ldots,g_l)$ at $a$? Here $f^{(n_1,\ldots,n_l)}$ is the result of applying the partial derivatives $\frac{d^{n_i}}{dx_i^{n_i}}$ to $f$.