...
Dynamic Layout functions can be used in snippets.
Scope
Functions are executed within the scope of the snippet. So references to page or variables refer to the page and variables within the snippet.
...
Even when the snippet document it places as a snippet in the "master" document.
Convert to frames
If the snippet is converted to frames, the Dynamic Layout functions are removed and the calculated value for the properties are applied.
...