Wondering, if I need my text to be of the size specified by a CSS
var
injected inside the HTML document where the view is hosted, is it doable at all?
d
David Herman
12/24/2023, 3:16 AM
What are you trying to do exactly?
e
Edoardo Luppi
12/24/2023, 3:44 PM
@David Herman the built app should be hosted inside a VS Code webview, and should inherit some style properties injected by VS Code itself.
Edoardo Luppi
12/24/2023, 3:44 PM
I guess I could apply CSS classes to Compose elements?
Edoardo Luppi
12/24/2023, 3:45 PM
Although, if it's built with WASM, that wouldn't work, or would it?
d
David Herman
12/25/2023, 6:03 PM
I'm not too familiar with WASM. That said, I'm assuming you can use JS standard library methods to query the state of the system, maybe something like this: https://stackoverflow.com/a/6338234 (but apologies as I'm taking a stab in the dark here)