You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be done, but not in the way your example suggests.
The ponyfill only supports :root-level declarations, but your example declares a custom property scoped to the <h1> tag (and all of its children). This won't be supported because it is not possible do so in a spec-compliant way (see #5 for details).
What could be added is the ability to transform inline custom property values to static values. For example:
:root {
--h1-color: blue;
}
<!-- Before --><h1style="color: var(--h1-color)">this would be super nice</h1><!-- After with options.preserve: false (default)--><h1style="color: blue;">this would be super nice</h1><!-- After with options.preserve: true --><h1style="color: var(--h1-color); color: blue;">this would be super nice</h1>
Any plans to support element level value assignment via the style tag?
The text was updated successfully, but these errors were encountered: