Does the ILayer renderScale
property do what you need?
Not sure how, it's still a JS scope, right? But I need access to this values from CSS, so that some of my styles html elements could adapt to layout scale, the way they adapt to construct scale thanks to the global --construct-scale variable. This grid class from the screenshot, for example, needs both construct and layout scales to be sized properly.
I could, of course, just assign new inline css styles through HTMLElement API everytime layout scale changes, but that would be much less convenient.