Re: [whatwg/dom] Proposal: add `computed` attribute for great performance! (Issue #1318)

@Kaiido wow!

> did you know that canvas2DContext.fillText() does need a reflow?

I had no idea even that static rectangle would trigger a reflow but thanks for the details and everything reasons well to me ... back to *CSS* wonderland, we have an easy way to write or read properties from JS but no way to be reactive ... would it be possible or make sense to have a way to hook into a CSS variable so that, when it changes, more can be done?

I know this might feel like looking for troubles, same way resize triggering a resize would do, but I am thinking if `--reactive-width: computed(--width)` where `--width` uses some calc or other metrics to eventually change, could be a partial solution (or a side-solution) to this issue, so that one could address the "*reactivity*" by selectors and handle changes around all possible properties whenever these happen?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1318#issuecomment-2416766249
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1318/2416766249@github.com>

Received on Wednesday, 16 October 2024 12:56:21 UTC