Skip to content

ShadyCSS CustomStyleInterface element #5

@asyncliz

Description

@asyncliz

We all know and love <custom-style>, but it comes with some extra cost due to the "include" feature of Polymer style modules.

It'd be great to have a tiny decoupled element that would register child styles with ShadyCSS for browsers that require the ShadyCSS polyfill.

Example:

<shady-style>
  <style>
    html {
      --custom-prop-on-ie11: teal;
    }
  </style>
</shady-style>

This was proposed on the Polymer slack by justin, daKmoR, and bennyp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalProposal for implementing a new element / project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions