@vasilis Within the context of a paged.js driven publishing, you may use `string-set`, like here: https://ateliers.esad-pyrenees.fr/stolon/string-set-print.
That’s a shame we cannot access this within a normal web page (or even in straight css print, since browsers never implemented it properly).