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
The goal is to improve the authoring experience for constructed stylesheets, especially within custom elements, by enabling inline creation without needing to call replaceSync() separately. This would be a small but meaningful ergonomic improvement and a low-barrier enhancement that could benefit many developers working with adoptedStyleSheets.
Would this be appropriate for inclusion in the spec, or is it better suited for discussion elsewhere?
The text was updated successfully, but these errors were encountered:
May we consider allowing CSSStyleSheetInit to accept a text property that synchronously assigns rules to the constructed sheet?
Example usage:
Example in
adoptedStyleSheets
:The goal is to improve the authoring experience for constructed stylesheets, especially within custom elements, by enabling inline creation without needing to call
replaceSync()
separately. This would be a small but meaningful ergonomic improvement and a low-barrier enhancement that could benefit many developers working withadoptedStyleSheets
.Would this be appropriate for inclusion in the spec, or is it better suited for discussion elsewhere?
The text was updated successfully, but these errors were encountered: