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 behavior returned from matchMediaStylesheetBehaviorFactory currently accepts an ElementStyles object.
If we allow this to additionally accept a Promise<ElementStyles> type then this behavior could be used with dynamic import syntax: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import. In practice, this means that forced-color stylesheets could be dynamically loaded and not shipped in the primary bundles:
Previous
conststyles=css` ....`.withBehaviors(forcedColorsStylesheetBehavior(css`/* high contrast styles */`))
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The behavior returned from
matchMediaStylesheetBehaviorFactory
currently accepts anElementStyles
object.If we allow this to additionally accept a
Promise<ElementStyles>
type then this behavior could be used with dynamic import syntax: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import. In practice, this means that forced-color stylesheets could be dynamically loaded and not shipped in the primary bundles:Previous
Proposed additional behavior
The text was updated successfully, but these errors were encountered: