Hi! I'm working on supporting CSP on a complex site and I wonder how to tackle this kind of dynamic case:
---
const { angle, offsetX, offsetY, scale } = Astro.props
---
<div class="relative size-full">
<div
class="absolute"
style={{
left: `calc(50% + ${offsetX || 0}px)`,
bottom: `calc(50% - ${offsetY || 0}px)`,
transform: `
rotate(${angle || 0}deg)
translate(-50%, +50%)
scale(${scale || 1})
`,
}}
>
</div>
</div>
I know I'm supposed to generate a hash but I can't since it's so dynamic. I also looked at attr() level 3 but it's still not implemented enough by major browsers.
So what's the solution here?