...
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.
If the snippet is converted to frames, the Dynamic Layout functions are removed and the calculated value for the properties are applied.
...