- From: Phil Holden via GitHub <sysbot+gh@w3.org>
- Date: Thu, 24 Oct 2019 13:46:18 +0000
- To: public-houdini-archive@w3.org
Does registering inherit false on a custom property provide any performance benefit? I have been playing round with registered custom properties as a means of theming in Svelte. The theme is passed down on the context. This theme is then used to set CSS variables that affect a single element: https://codesandbox.io/s/svelte-theme-components-crt54?fontsize=14&module=%2FButton.svelte Is my assumption correct that by setting inherit to false we can let the browser know it does not need to recalculate children when a variable on a child element changes? -- GitHub Notification of comment by philholden Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/940#issuecomment-545925767 using your GitHub account
Received on Thursday, 24 October 2019 13:46:19 UTC