// Copy property names first because CSSStyleDeclaration is live. const properties = []; for (let i = 0; i < style.length; i++) { properties.push(style[i]); }
properties.forEach(function(property) { if (!property.startsWith('--pagedjs-string-')) { return; }
const value = style.getPropertyValue(property).trim();